示例#1
0
    def __init__(self, obj: nrn.Section, cell: CoreCell, name: str):
        """
        Create wrapper for the Section object from HOC.

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

        Removal is not intented to remove any children of this section.

        :param obj:
            HOC's Section object
        :param cell:
            Cell where the section is located
        :param name:
            string name of the section
        """

        self.cell = cell
        HocWrapper.__init__(self, hoc_obj=obj, parent=None, name=name)
示例#2
0
    def __init__(self, source, point_process: PointProcess, name,
                 netcon: Optional[Union[List[NetCon], NetCon]] = None, tag=None):
        self.point_process = point_process
        self.point_process_name = point_process.mod_name

        name = "%s[%s]" % (self.point_process_name, name)
        HocWrapper.__init__(self, hoc_obj=point_process.hoc, parent=point_process.parent, name=name)

        self.tag = tag

        self.sources = []
        if source is not None:
            self.sources.append(source)
        self.target = point_process.parent

        if netcon is None:
            self.netcons = []
        else:
            if not isinstance(netcon, Iterable):
                netcon = [netcon]
            self.netcons = netcon
示例#3
0
 def __init__(self, obj: nrn.Section, cell: CoreCell, name):
     self.cell = cell
     HocWrapper.__init__(self, hoc_obj=obj, parent=None, name=name)
示例#4
0
 def __init__(self, obj, parent, name):
     HocWrapper.__init__(self, hoc_obj=obj, parent=parent, name=name)
示例#5
0
 def __init__(self, hoc_obj, parent: CoreCell, name):
     HocWrapper.__init__(self, hoc_obj=hoc_obj, parent=parent, name=name)
示例#6
0
 def __init__(self, hoc_obj, name, source: HocWrapper, target: PointProcess,
              parent: CoreCell):
     HocWrapper.__init__(self, hoc_obj=hoc_obj, parent=parent, name=name)
     self.source = source
     self.target = target
示例#7
0
 def __init__(self, hoc_obj, name, parent: Seg, cell, mod_name):
     HocWrapper.__init__(self, hoc_obj=hoc_obj, parent=parent, name=name)
     self.seg = parent
     self.mod_name = mod_name
     self.cell = cell