コード例 #1
0
ファイル: spine.py プロジェクト: wsredniawa/neuronpp
 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
コード例 #2
0
ファイル: rxd_cell.py プロジェクト: ziemowit-s/neuronpp
 def __init__(self, name=None, compile_paths=None):
     """
     :param name:
         Name of the cell
     """
     SectionCell.__init__(self, name, compile_paths=compile_paths)
     self.rxds = []
コード例 #3
0
ファイル: spine.py プロジェクト: ziemowit-s/neuronpp
    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)
コード例 #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)
コード例 #5
0
ファイル: core_hoc_cell.py プロジェクト: wsredniawa/neuronpp
 def __init__(self, name, compile_paths=None):
     SectionCell.__init__(self, name, compile_paths=compile_paths)
     self._hoc_loaded = False
コード例 #6
0
ファイル: spine_cell.py プロジェクト: ziemowit-s/neuronpp
 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