当前位置: 首页>>代码示例>>Python>>正文


Python BaseNeo.__init__方法代码示例

本文整理汇总了Python中neo.core.baseneo.BaseNeo.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python BaseNeo.__init__方法的具体用法?Python BaseNeo.__init__怎么用?Python BaseNeo.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在neo.core.baseneo.BaseNeo的用法示例。


在下文中一共展示了BaseNeo.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from neo.core.baseneo import BaseNeo [as 别名]
# 或者: from neo.core.baseneo.BaseNeo import __init__ [as 别名]
    def __init__(self, channel_names=None, channel_indexes=None, name=None,
                 description=None, file_origin=None, **annotations):
        """Initialize a new RecordingChannelGroup."""
        # Inherited initialization
        # Sets universally recommended attributes, and places all others
        # in annotations
        BaseNeo.__init__(self, name=name, file_origin=file_origin,
                         description=description, **annotations)

        # Defaults
        if channel_indexes is None:
            channel_indexes = np.array([])
        if channel_names is None:
            channel_names = np.array([])

        # Store recommended attributes
        self.channel_names = channel_names
        self.channel_indexes = channel_indexes

        # Initialize containers for child objects
        self.analogsignalarrays = []
        self.units = []
        # Many to many relationship
        self.recordingchannels = []

        self.block = None
开发者ID:dengemann,项目名称:python-neo,代码行数:28,代码来源:recordingchannelgroup.py

示例2: __init__

# 需要导入模块: from neo.core.baseneo import BaseNeo [as 别名]
# 或者: from neo.core.baseneo.BaseNeo import __init__ [as 别名]
 def __init__(self, times=None, durations=None, labels=None, units=None,
              name=None, description=None, file_origin=None, **annotations):
     '''
     Initialize a new :class:`Epoch` instance.
     '''
     BaseNeo.__init__(self, name=name, file_origin=file_origin,
                      description=description, **annotations)
开发者ID:SummitKwan,项目名称:python-neo,代码行数:9,代码来源:epoch.py

示例3: __init__

# 需要导入模块: from neo.core.baseneo import BaseNeo [as 别名]
# 或者: from neo.core.baseneo.BaseNeo import __init__ [as 别名]
 def __init__(self, signal, units=None, dtype=None, copy=True,
              t_start=0 * pq.s, sampling_rate=None, sampling_period=None,
              name=None, file_origin=None, description=None,
              channel_index=None, **annotations):
     '''
     Initializes a newly constructed :class:`AnalogSignalArray` instance.
     '''
     BaseNeo.__init__(self, name=name, file_origin=file_origin,
                      description=description, **annotations)
开发者ID:bal47,项目名称:python-neo,代码行数:11,代码来源:analogsignalarray.py

示例4: __init__

# 需要导入模块: from neo.core.baseneo import BaseNeo [as 别名]
# 或者: from neo.core.baseneo.BaseNeo import __init__ [as 别名]
 def __init__(self, times, signal, units=None, time_units=None, dtype=None,
              copy=True, name=None, file_origin=None, description=None,
              **annotations):
     '''
     Initializes a newly constructed :class:`IrregularlySampledSignal`
     instance.
     '''
     BaseNeo.__init__(self, name=name, file_origin=file_origin,
                      description=description, **annotations)
开发者ID:Silmathoron,项目名称:python-neo,代码行数:11,代码来源:irregularlysampledsignal.py

示例5: __init__

# 需要导入模块: from neo.core.baseneo import BaseNeo [as 别名]
# 或者: from neo.core.baseneo.BaseNeo import __init__ [as 别名]
 def __init__(self, time, label, name=None, description=None,
              file_origin=None, **annotations):
     """Initialize a new Event."""
     BaseNeo.__init__(self, name=name, file_origin=file_origin,
                      description=description, **annotations)
     self.time = time
     self.label = label
     
     self.segment =None
开发者ID:tkf,项目名称:neo,代码行数:11,代码来源:event.py

示例6: __init__

# 需要导入模块: from neo.core.baseneo import BaseNeo [as 别名]
# 或者: from neo.core.baseneo.BaseNeo import __init__ [as 别名]
    def __init__(self, times=np.array([]) * pq.s,
                 labels=np.array([], dtype='S'), name=None, description=None,
                 file_origin=None, **annotations):
        """Initialize a new EventArray."""
        BaseNeo.__init__(self, name=name, file_origin=file_origin,
                         description=description, **annotations)
        self.times = times
        self.labels = labels

        self.segment = None
开发者ID:dengemann,项目名称:python-neo,代码行数:12,代码来源:eventarray.py

示例7: __init__

# 需要导入模块: from neo.core.baseneo import BaseNeo [as 别名]
# 或者: from neo.core.baseneo.BaseNeo import __init__ [as 别名]
    def __init__(self, time, label, name=None, description=None,
                 file_origin=None, **annotations):
        '''
        Initialize a new :class:`Event` instance.
        '''
        BaseNeo.__init__(self, name=name, file_origin=file_origin,
                         description=description, **annotations)
        self.time = time
        self.label = label

        self.segment = None
开发者ID:ChrisNolan1992,项目名称:python-neo,代码行数:13,代码来源:event.py

示例8: __init__

# 需要导入模块: from neo.core.baseneo import BaseNeo [as 别名]
# 或者: from neo.core.baseneo.BaseNeo import __init__ [as 别名]
 def __init__(self, name=None, description=None, file_origin=None, 
                             channel_indexes = None, **annotations):
     """Initialize a new neuronal Unit (spike source)"""
     BaseNeo.__init__(self, name=name, file_origin=file_origin,
                      description=description, **annotations)
     
     self.channel_indexes = channel_indexes
     
     self.spiketrains = [ ]
     self.spikes = [ ]
     
     self.recordingchannelgroup = None
开发者ID:tkf,项目名称:neo,代码行数:14,代码来源:unit.py

示例9: __init__

# 需要导入模块: from neo.core.baseneo import BaseNeo [as 别名]
# 或者: from neo.core.baseneo.BaseNeo import __init__ [as 别名]
 def __init__(self, times, values,
               name=None, description=None,
              file_origin=None, **annotations):
     """Initalize a new IrregularlySampledSignal."""
     BaseNeo.__init__(self, name=name, file_origin=file_origin,
                      description=description, **annotations)
     
     self.times = times
     self.values = values
     
     self.segment = None
     self.recordingchannel = None
开发者ID:tkf,项目名称:neo,代码行数:14,代码来源:irregularlysampledsignal.py

示例10: __init__

# 需要导入模块: from neo.core.baseneo import BaseNeo [as 别名]
# 或者: from neo.core.baseneo.BaseNeo import __init__ [as 别名]
    def __init__(self, name=None, description=None, file_origin=None,
                 file_datetime=None, rec_datetime=None, index=None,
                 **annotations):
        """Initalize a new Block."""
        BaseNeo.__init__(self, name=name, file_origin=file_origin,
                         description=description, **annotations)

        self.file_datetime = file_datetime
        self.rec_datetime = rec_datetime
        self.index = index

        self.segments = []
        self.recordingchannelgroups = []
开发者ID:michaelfsp,项目名称:python-neo,代码行数:15,代码来源:block.py

示例11: __init__

# 需要导入模块: from neo.core.baseneo import BaseNeo [as 别名]
# 或者: from neo.core.baseneo.BaseNeo import __init__ [as 别名]
    def __init__(self, name=None, description=None, file_origin=None,
                 channel_indexes=None, **annotations):
        '''
        Initialize a new :clas:`Unit` instance (spike source)
        '''
        BaseNeo.__init__(self, name=name, file_origin=file_origin,
                         description=description, **annotations)

        self.channel_indexes = channel_indexes

        self.spiketrains = []
        self.spikes = []

        self.recordingchannelgroup = None
开发者ID:leaandre,项目名称:python-neo,代码行数:16,代码来源:unit.py

示例12: __init__

# 需要导入模块: from neo.core.baseneo import BaseNeo [as 别名]
# 或者: from neo.core.baseneo.BaseNeo import __init__ [as 别名]
    def __init__(self, times=None, labels=None, name=None, description=None, file_origin=None, **annotations):
        """
        Initialize a new :class:`EventArray` instance.
        """
        BaseNeo.__init__(self, name=name, file_origin=file_origin, description=description, **annotations)
        if times is None:
            times = np.array([]) * pq.s
        if labels is None:
            labels = np.array([], dtype="S")

        self.times = times
        self.labels = labels

        self.segment = None
开发者ID:bal47,项目名称:python-neo,代码行数:16,代码来源:eventarray.py

示例13: __init__

# 需要导入模块: from neo.core.baseneo import BaseNeo [as 别名]
# 或者: from neo.core.baseneo.BaseNeo import __init__ [as 别名]
    def __init__(self, array_annotations=None, **annotations):
        # this for py27 str vs py3 str in neo attributes ompatibility
        annotations = check_annotations(annotations)
        if 'file_origin' not in annotations:
            # the str is to make compatible with neo_py27 where attribute
            # used to be str so raw bytes
            annotations['file_origin'] = str(self._rawio.source_name())

        # this mock the array annotaions to avoid inherits DataObject
        self.array_annotations = ArrayDict(self.shape[-1])
        if array_annotations is not None:
            self.array_annotations.update(array_annotations)

        BaseNeo.__init__(self, **annotations)
开发者ID:INM-6,项目名称:python-neo,代码行数:16,代码来源:proxyobjects.py

示例14: __init__

# 需要导入模块: from neo.core.baseneo import BaseNeo [as 别名]
# 或者: from neo.core.baseneo.BaseNeo import __init__ [as 别名]
    def __init__(self, times, t_stop, units=None,  dtype=np.float,
                 copy=True, sampling_rate=1.0 * pq.Hz, t_start=0.0 * pq.s,
                 waveforms=None, left_sweep=None, name=None, file_origin=None,
                 description=None, **annotations):
        """Initializes newly constructed SpikeTrain."""
        # This method is only called when constructing a new SpikeTrain,
        # not when slicing or viewing. We use the same call signature
        # as __new__ for documentation purposes. Anything not in the call
        # signature is stored in annotations.

        # Calls parent __init__, which grabs universally recommended
        # attributes and sets up self.annotations
        BaseNeo.__init__(self, name=name, file_origin=file_origin,
                         description=description, **annotations)
开发者ID:dengemann,项目名称:python-neo,代码行数:16,代码来源:spiketrain.py

示例15: __init__

# 需要导入模块: from neo.core.baseneo import BaseNeo [as 别名]
# 或者: from neo.core.baseneo.BaseNeo import __init__ [as 别名]
 def __init__(self, time=0*pq.s, waveform=None, sampling_rate=None,
              left_sweep=None, name=None, description=None,
              file_origin=None, **annotations):
     """Initialize a new Spike."""
     BaseNeo.__init__(self, name=name, file_origin=file_origin,
                      description=description, **annotations)
     
     self.time = time
     
     self.waveform = waveform
     self.left_sweep = left_sweep
     self.sampling_rate = sampling_rate
     
     self.segment = None
     self.unit = None
开发者ID:tkf,项目名称:neo,代码行数:17,代码来源:spike.py


注:本文中的neo.core.baseneo.BaseNeo.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。