def __init__(self, neo_reader, segment_index, use_natural_unit_ids, t_start, sampling_freq):
        BaseSortingSegment.__init__(self)
        self.neo_reader = neo_reader
        self.segment_index = segment_index
        self.use_natural_unit_ids = use_natural_unit_ids
        self._t_start = t_start
        self._sampling_freq = sampling_freq

        self._natural_ids = None
Ejemplo n.º 2
0
 def __init__(self, path, sampling_frequency):
     BaseSortingSegment.__init__(self)
     self._path = path
     self._sampling_frequency = sampling_frequency
Ejemplo n.º 3
0
 def __init__(self, multisortingcomparison):
     BaseSortingSegment.__init__(self)
     self._msc = multisortingcomparison
Ejemplo n.º 4
0
    def __init__(self, oldapi_sorting_extractor):
        BaseSortingSegment.__init__(self)
        self._oldapi_sorting_extractor = oldapi_sorting_extractor

        self._kwargs = {'oldapi_sorting_extractor': oldapi_sorting_extractor}
Ejemplo n.º 5
0
 def __init__(self, spiketrains):
     BaseSortingSegment.__init__(self)
     # spiketrains is a 2 columns
     self._spiketrains = spiketrains
Ejemplo n.º 6
0
 def __init__(self, unit_ids, spike_times, spike_ids):
     BaseSortingSegment.__init__(self)
     # spike_times is a dict
     self._unit_ids = list(unit_ids)
     self._spike_times = spike_times
     self._spike_ids = spike_ids
Ejemplo n.º 7
0
 def __init__(self, units_dict):
     BaseSortingSegment.__init__(self)
     for unit_id, times in units_dict.items():
         assert times.dtype.kind == 'i', 'numpy array of spike times must be integer'
         assert np.all(np.diff(times) >= 0), 'unsorted times'
     self._units_dict = units_dict
Ejemplo n.º 8
0
 def __init__(self, nwbfile, sampling_frequency, timestamps):
     BaseSortingSegment.__init__(self)
     self._nwbfile = nwbfile
     self._sampling_frequency = sampling_frequency
     self._timestamps = timestamps
Ejemplo n.º 9
0
 def __init__(self, all_spikes, all_clusters):
     BaseSortingSegment.__init__(self)
     self._all_spikes = all_spikes
     self._all_clusters = all_clusters
Ejemplo n.º 10
0
 def __init__(self, unit_ids, spiketrains):
     BaseSortingSegment.__init__(self)
     self._unit_ids = list(unit_ids)
     self._spiketrains = spiketrains
Ejemplo n.º 11
0
 def __init__(self, spiketrains):
     BaseSortingSegment.__init__(self)
     # spiketrains is dict
     self._spiketrains = spiketrains
Ejemplo n.º 12
0
 def __init__(self, firings):
     self._firings = firings
     self._max_channels = self._firings[0, :]
     self._spike_times = self._firings[1, :]
     self._labels = self._firings[2, :]
     BaseSortingSegment.__init__(self)
Ejemplo n.º 13
0
 def __init__(self, spike_clusters, spike_times, sampling_frequency):
     self._spike_clusters = spike_clusters
     self._spike_times = spike_times
     self._sampling_frequency = sampling_frequency
     BaseSortingSegment.__init__(self)
Ejemplo n.º 14
0
 def __init__(self, units_dict):
     BaseSortingSegment.__init__(self)
     for unit_id, times in units_dict.items():
         assert times.dtype.kind == 'i', 'numpy array of spike times must be integer'
     self._units_dict = units_dict
Ejemplo n.º 15
0
 def __init__(self, oldapi_sorting_extractor):
     BaseSortingSegment.__init__(self)
     self._old_api_sorting_extractor = oldapi_sorting_extractor
Ejemplo n.º 16
0
 def __init__(self, spike_clusters):
     self._spike_clusters = spike_clusters
     BaseSortingSegment.__init__(self)
 def __init__(self, all_spikes):
     BaseSortingSegment.__init__(self)
     self._all_spikes = all_spikes