Exemple #1
0
 def __init__(self, head: Sec, neck: Sec, cell: SectionCell, name):
     self.cell = cell
     cell.connect_secs(source=head, target=neck)
     self.hoc_objs = [neck.hoc, head.hoc]
     self.head = head
     self.neck = neck
     self.name = name
Exemple #2
0
 def __init__(self, name=None, compile_paths=None):
     """
     :param name:
         Name of the cell
     """
     SectionCell.__init__(self, name, compile_paths=compile_paths)
     self.rxds = []
Exemple #3
0
    def __init__(self, head: Sec, neck: Sec, cell: SectionCell, name):
        """
        Wrapper for the spine which contains head and neck sections.

        The connection of the head and the neck is done here in the constructor.

        Parent is not defined since it is provided as a property method which looks for the parent
        on the neuron's tree.

        :param head:
            section of the head
        :param neck:
            section of the neck
        :param cell:
            cell where those sections exists
        :param name:
            name of the spine
        """
        cell.connect_secs(child=head,
                          parent=neck,
                          child_loc=0.0,
                          parent_loc=1.0)
        self.head = head
        self.neck = neck
        self.cell = cell
        SecGroup.__init__(self, secs=[head, neck], name=name)
Exemple #4
0
 def __init__(self, name=None, compile_paths=None):
     """
     :param name:
         Name of the cell
     """
     SectionCell.__init__(self, name, compile_paths=compile_paths)
     self.pps = []
     self._pp_num = defaultdict(int)
Exemple #5
0
 def __init__(self, name, compile_paths=None):
     SectionCell.__init__(self, name, compile_paths=compile_paths)
     self._hoc_loaded = False
Exemple #6
0
 def __init__(self, name=None, compile_paths=None):
     SectionCell.__init__(self, name, compile_paths=compile_paths)
     self.spines = []
     self.heads = []
     self.necks = []
     self._next_index = 0