Esempio n. 1
0
 def __init__(self, times=None, labels=None, units=None, name=None, description=None,
              file_origin=None, array_annotations=None, **annotations):
     '''
     Initialize a new :class:`Event` instance.
     '''
     DataObject.__init__(self, name=name, file_origin=file_origin, description=description,
                         array_annotations=array_annotations, **annotations)
Esempio n. 2
0
 def __init__(self, times=None, durations=None, labels=None, units=None, name=None,
              description=None, file_origin=None, array_annotations=None, **annotations):
     '''
     Initialize a new :class:`Epoch` instance.
     '''
     DataObject.__init__(self, name=name, file_origin=file_origin, description=description,
                         array_annotations=array_annotations, **annotations)
Esempio n. 3
0
    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,
                 array_annotations=None,
                 **annotations):
        '''
        Initializes a newly constructed :class:`AnalogSignal` instance.
        '''
        # This method is only called when constructing a new AnalogSignal,
        # 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
        DataObject.__init__(self,
                            name=name,
                            file_origin=file_origin,
                            description=description,
                            array_annotations=array_annotations,
                            **annotations)
Esempio n. 4
0
 def __init__(self, image_data, units=None, dtype=None, copy=True, spatial_scale=None, sampling_period=None,
              sampling_rate=None, name=None, description=None, file_origin=None,
              **annotations):
     '''
            Initializes a newly constructed :class:`ImageSequence` instance.
     '''
     DataObject.__init__(self, name=name, file_origin=file_origin, description=description,
                         **annotations)
Esempio n. 5
0
 def __init__(self, times, signal, units=None, time_units=None, dtype=None, copy=True,
              name=None, file_origin=None, description=None, array_annotations=None,
              **annotations):
     '''
     Initializes a newly constructed :class:`IrregularlySampledSignal`
     instance.
     '''
     DataObject.__init__(self, name=name, file_origin=file_origin, description=description,
                         array_annotations=array_annotations, **annotations)
 def __init__(self, times, signal, units=None, time_units=None, dtype=None, copy=True,
              name=None, file_origin=None, description=None, array_annotations=None,
              **annotations):
     '''
     Initializes a newly constructed :class:`IrregularlySampledSignal`
     instance.
     '''
     DataObject.__init__(self, name=name, file_origin=file_origin, description=description,
                         array_annotations=array_annotations, **annotations)
Esempio n. 7
0
    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, array_annotations=None,
                 **annotations):
        '''
        Initializes a newly constructed :class:`SpikeTrain` instance.
        '''
        # 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
        DataObject.__init__(self, name=name, file_origin=file_origin, description=description,
                            array_annotations=array_annotations, **annotations)