本文整理汇总了Python中neuro_object.NeuroObject.outputs方法的典型用法代码示例。如果您正苦于以下问题:Python NeuroObject.outputs方法的具体用法?Python NeuroObject.outputs怎么用?Python NeuroObject.outputs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类neuro_object.NeuroObject
的用法示例。
在下文中一共展示了NeuroObject.outputs方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: outputs
# 需要导入模块: from neuro_object import NeuroObject [as 别名]
# 或者: from neuro_object.NeuroObject import outputs [as 别名]
def outputs(self, recurse = True):
outputs = NeuroObject.outputs(self, recurse)
if self.sendsOutput:
outputs += [self.region]
if self.receivesInput:
outputs += [self.neurite]
return outputs
示例2: outputs
# 需要导入模块: from neuro_object import NeuroObject [as 别名]
# 或者: from neuro_object.NeuroObject import outputs [as 别名]
def outputs(self, recurse = True):
outputs = NeuroObject.outputs(self, recurse)
if self.region1Projects:
outputs += [self.region2]
if self.region2Projects:
outputs += [self.region1]
return outputs
示例3: outputs
# 需要导入模块: from neuro_object import NeuroObject [as 别名]
# 或者: from neuro_object.NeuroObject import outputs [as 别名]
def outputs(self, recurse = True):
"""
Return a list of all objects that receive information from this neuron and optionally any extending :class:`neurites <Network.Neurite.Neurite>`.
The list may contain any number of :class:`arborizations <Network.Arborization.Arborization>`, :class:`gap junctions <Network.GapJunction.GapJunction>`, :class:`innervations <Network.Innervation.Innervation>` or :class:`synapses <Network.Synapse.Synapse>`.
"""
return NeuroObject.outputs(self, recurse)
示例4: outputs
# 需要导入模块: from neuro_object import NeuroObject [as 别名]
# 或者: from neuro_object.NeuroObject import outputs [as 别名]
def outputs(self, recurse = True):
outputs = NeuroObject.outputs(self, recurse)
for pathway in self.pathways:
if pathway.region1 == self and pathway.region1Projects or pathway.region2 == self and pathway.region2Projects:
outputs.append(pathway)
for arborization in self.arborizations:
if arborization.receivesInput:
outputs.append(arborization)
if recurse:
for subRegion in self.subRegions:
outputs += subRegion.outputs()
return outputs
示例5: outputs
# 需要导入模块: from neuro_object import NeuroObject [as 别名]
# 或者: from neuro_object.NeuroObject import outputs [as 别名]
def outputs(self, recurse=True):
"""
Return a list of all objects that receive information from this neurite and optionally any extending neurites.
The list may contain any number of :class:`arborizations <Network.Arborization.Arborization>`, :class:`gap junctions <Network.GapJunction.GapJunction>`, :class:`innervations <Network.Innervation.Innervation>` or :class:`synapses <Network.Synapse.Synapse>`.
"""
outputs = (
NeuroObject.outputs(self, recurse)
+ self.gapJunctions(False)
+ self.innervations(False)
+ self.synapses(includePost=False, recurse=False)
)
if self.arborization is not None and self.arborization.sendsOutput:
outputs += [self.arborization]
return outputs
示例6: outputs
# 需要导入模块: from neuro_object import NeuroObject [as 别名]
# 或者: from neuro_object.NeuroObject import outputs [as 别名]
def outputs(self, recurse = True):
return NeuroObject.outputs(self, recurse) + list(self._neurites)
示例7: outputs
# 需要导入模块: from neuro_object import NeuroObject [as 别名]
# 或者: from neuro_object.NeuroObject import outputs [as 别名]
def outputs(self, recurse = True):
return NeuroObject.outputs(self, recurse) + self.postSynapticPartners
示例8: outputs
# 需要导入模块: from neuro_object import NeuroObject [as 别名]
# 或者: from neuro_object.NeuroObject import outputs [as 别名]
def outputs(self, recurse = True):
return NeuroObject.outputs(self, recurse) + [self.muscle]