Ejemplo n.º 1
0
 def _includeInScript(self, atTopLevel = False):
     # If this neurite is just a dummy neurite used to support a simple arborization, innervation, gap junction or synapse then it does not need to be created.
     from neuron import Neuron
     connections = self.connections()
     if not self._needsScriptRef() and isinstance(self.root, Neuron) and len(connections) == 2:
         connections.remove(self.root)
         if isinstance(connections[0], (Arborization, Innervation, GapJunction, Synapse)):
             return False
     
     return NeuroObject._includeInScript(self)
Ejemplo n.º 2
0
    def _includeInScript(self, atTopLevel=False):
        # If this neurite is just a dummy neurite used to support a simple arborization, innervation, gap junction or synapse then it does not need to be created.
        from neuron import Neuron

        connections = self.connections()
        if not self._needsScriptRef() and isinstance(self.root, Neuron) and len(connections) == 2:
            connections.remove(self.root)
            if isinstance(connections[0], (Arborization, Innervation, GapJunction, Synapse)):
                return False

        return NeuroObject._includeInScript(self)