hits
# -*- coding: utf-8 -*- ''' This module implements :class:`SpikeTrain`, an array of spike times.
:waveforms: (quantity array 3D (spike, channel_index, time)) The waveforms of each spike.
:sort: (bool) If True, the spike train will be sorted by time.
stack = np.concatenate((np.asarray(self), np.asarray(other))) sorting = np.argsort(stack)
stack = stack[sorting] kwargs = {} kwargs['array_annotations'] = self.
_merge_array_annotations(other, sorting=sorting) for name in ("name", "description", "file_origin
wfs_stack = np.vstack((self.waveforms, other.waveforms)) wfs_stack = wfs_stack[sorting
Apart from that the array_annotations need to be sorted according to the sorting of the spikes
:return Merged array_annotations ''' assert sorting is not None, "The order of the merged
arr_ann = np.concatenate([self_ann, other_ann]) merged_array_annotations[key] = arr_ann[sorting
hits
# -*- coding: utf-8 -*- ''' This module implements :class:`SpikeTrain`, an array of spike times.
:waveforms: (quantity array 3D (spike, channel_index, time)) The waveforms of each spike.
:sort: (bool) If True, the spike train will be sorted by time.
stack = np.concatenate((np.asarray(self), np.asarray(other))) sorting = np.argsort(stack)
stack = stack[sorting] kwargs = {} kwargs['array_annotations'] = self.
_merge_array_annotations(other, sorting=sorting) for name in ("name", "description", "file_origin
wfs_stack = np.vstack((self.waveforms, other.waveforms)) wfs_stack = wfs_stack[sorting
Apart from that the array_annotations need to be sorted according to the sorting of the spikes
:return Merged array_annotations ''' assert sorting is not None, "The order of the merged
arr_ann = np.concatenate([self_ann, other_ann]) merged_array_annotations[key] = arr_ann[sorting
hits
The spike sorting version is attached to filename by a postfix '-XX', where XX is the version
, e.g., l101010-001-02 for spike sorting version 2 of file l101010-001.
If no odML is present, no information on the spike sorting (e.g., if a unit is SUA or MUA
= re.sub(os.path.extsep + ext + '$', '', filename) if nev_override: # check if sorting
sorting version nev_versions = [re.sub( os.path.extsep + 'nev$', '', p)
version, and there is an # odML, then make sure the detected sorting version matches the odML
_print_verbose( "Attempting to utilize the most recent " "sorting
sorting info from the odML be matched with the odML?
detection and spike sorting procedure.
detection and spike sorting procedure.
hits
The spike sorting version is attached to filename by a postfix '-XX', where XX is the version
, e.g., l101010-001-02 for spike sorting version 2 of file l101010-001.
If no odML is present, no information on the spike sorting (e.g., if a unit is SUA or MUA
= re.sub(os.path.extsep + ext + '$', '', filename) if nev_override: # check if sorting
sorting version nev_versions = [re.sub( os.path.extsep + 'nev$', '', p)
version, and there is an # odML, then make sure the detected sorting version matches the odML
_print_verbose( "Attempting to utilize the most recent " "sorting
sorting info from the odML be matched with the odML?
detection and spike sorting procedure.
detection and spike sorting procedure.
hits
The spike sorting version is attached to filename by a postfix '-XX', where XX is the version
, e.g., l101010-001-02 for spike sorting version 2 of file l101010-001.
If no odML is present, no information on the spike sorting (e.g., if a unit is SUA or MUA
= re.sub(os.path.extsep + ext + '$', '', filename) if nev_override: # check if sorting
sorting version nev_versions = [re.sub( os.path.extsep + 'nev$', '', p)
version, and there is an # odML, then make sure the detected sorting version matches the odML
_print_verbose( "Attempting to utilize the most recent " "sorting
sorting info from the odML be matched with the odML?
detection and spike sorting procedure.
detection and spike sorting procedure.
hits
The spike sorting version is attached to filename by a postfix '-XX', where XX is the version
, e.g., l101010-001-02 for spike sorting version 2 of file l101010-001.
If no odML is present, no information on the spike sorting (e.g., if a unit is SUA or MUA
= re.sub(os.path.extsep + ext + '$', '', filename) if nev_override: # check if sorting
sorting version nev_versions = [re.sub( os.path.extsep + 'nev$', '', p)
version, and there is an # odML, then make sure the detected sorting version matches the odML
_print_verbose( "Attempting to utilize the most recent " "sorting
sorting info from the odML be matched with the odML?
detection and spike sorting procedure.
detection and spike sorting procedure.
hits
The spike sorting version is attached to filename by a postfix '-XX', where XX is the version
, e.g., l101010-001-02 for spike sorting version 2 of file l101010-001.
If no odML is present, no information on the spike sorting (e.g., if a unit is SUA or MUA
= re.sub(os.path.extsep + ext + '$', '', filename) if nev_override: # check if sorting
sorting version nev_versions = [re.sub( os.path.extsep + 'nev$', '', p)
version, and there is an # odML, then make sure the detected sorting version matches the odML
_print_verbose( "Attempting to utilize the most recent " "sorting
sorting info from the odML be matched with the odML?
detection and spike sorting procedure.
detection and spike sorting procedure.
hits
The spike sorting version is attached to filename by a postfix '-XX', where XX is the version
, e.g., l101010-001-02 for spike sorting version 2 of file l101010-001.
If no odML is present, no information on the spike sorting (e.g., if a unit is SUA or MUA
= re.sub(os.path.extsep + ext + '$', '', filename) if nev_override: # check if sorting
sorting version nev_versions = [re.sub( os.path.extsep + 'nev$', '', p)
version, and there is an # odML, then make sure the detected sorting version matches the odML
_print_verbose( "Attempting to utilize the most recent " "sorting
sorting info from the odML be matched with the odML?
detection and spike sorting procedure.
detection and spike sorting procedure.
hits
The spike sorting version is attached to filename by a postfix '-XX', where XX is the version
, e.g., l101010-001-02 for spike sorting version 2 of file l101010-001.
If no odML is present, no information on the spike sorting (e.g., if a unit is SUA or MUA
= re.sub(os.path.extsep + ext + '$', '', filename) if nev_override: # check if sorting
sorting version nev_versions = [re.sub( os.path.extsep + 'nev$', '', p)
version, and there is an # odML, then make sure the detected sorting version matches the odML
_print_verbose( "Attempting to utilize the most recent " "sorting
sorting info from the odML be matched with the odML?
detection and spike sorting procedure.
detection and spike sorting procedure.
hits
The spike sorting version is attached to filename by a postfix '-XX', where XX is the version
, e.g., l101010-001-02 for spike sorting version 2 of file l101010-001.
If no odML is present, no information on the spike sorting (e.g., if a unit is SUA or MUA
= re.sub(os.path.extsep + ext + '$', '', filename) if nev_override: # check if sorting
sorting version nev_versions = [re.sub( os.path.extsep + 'nev$', '', p)
version, and there is an # odML, then make sure the detected sorting version matches the odML
_print_verbose( "Attempting to utilize the most recent " "sorting
sorting info from the odML be matched with the odML?
detection and spike sorting procedure.
detection and spike sorting procedure.
hits
The spike sorting version is attached to filename by a postfix '-XX', where XX is the version
, e.g., l101010-001-02 for spike sorting version 2 of file l101010-001.
If no odML is present, no information on the spike sorting (e.g., if a unit is SUA or MUA
= re.sub(os.path.extsep + ext + '$', '', filename) if nev_override: # check if sorting
sorting version nev_versions = [re.sub( os.path.extsep + 'nev$', '', p)
version, and there is an # odML, then make sure the detected sorting version matches the odML
_print_verbose( "Attempting to utilize the most recent " "sorting
sorting info from the odML be matched with the odML?
detection and spike sorting procedure.
detection and spike sorting procedure.
hits
The spike sorting version is attached to filename by a postfix '-XX', where XX is the version
, e.g., l101010-001-02 for spike sorting version 2 of file l101010-001.
If no odML is present, no information on the spike sorting (e.g., if a unit is SUA or MUA
= re.sub(os.path.extsep + ext + '$', '', filename) if nev_override: # check if sorting
sorting version nev_versions = [re.sub( os.path.extsep + 'nev$', '', p)
version, and there is an # odML, then make sure the detected sorting version matches the odML
_print_verbose( "Attempting to utilize the most recent " "sorting
sorting info from the odML be matched with the odML?
detection and spike sorting procedure.
detection and spike sorting procedure.
hits
The spike sorting version is attached to filename by a postfix '-XX', where XX is the version
, e.g., l101010-001-02 for spike sorting version 2 of file l101010-001.
If no odML is present, no information on the spike sorting (e.g., if a unit is SUA or MUA
= re.sub(os.path.extsep + ext + '$', '', filename) if nev_override: # check if sorting
sorting version nev_versions = [re.sub( os.path.extsep + 'nev$', '', p)
version, and there is an # odML, then make sure the detected sorting version matches the odML
_print_verbose( "Attempting to utilize the most recent " "sorting
sorting info from the odML be matched with the odML?
detection and spike sorting procedure.
detection and spike sorting procedure.
hits
The spike sorting version is attached to filename by a postfix '-XX', where XX is the version
, e.g., l101010-001-02 for spike sorting version 2 of file l101010-001.
If no odML is present, no information on the spike sorting (e.g., if a unit is SUA or MUA
= re.sub(os.path.extsep + ext + '$', '', filename) if nev_override: # check if sorting
sorting version nev_versions = [re.sub( os.path.extsep + 'nev$', '', p)
version, and there is an # odML, then make sure the detected sorting version matches the odML
_print_verbose( "Attempting to utilize the most recent " "sorting
sorting info from the odML be matched with the odML?
detection and spike sorting procedure.
detection and spike sorting procedure.
hits
GDF files for the spike data and DAT files for analog signals are possible.
specified to %s.' '' % column_list_no_None) # extracting condition and sorting
No spike times to ' 'be read in.')
times are collected in one # spike train with id=None else: train = data
gid_list condition_column = id_column sorting_column.append(curr_id) # Sorting
curr_id += 1 if time_column is not None: sorting_column.append(curr_id) # Sorting
Specify an empty list [] to retrieve the spike trains of all neurons.
Specify an empty list [] to retrieve the spike trains of all neurons.
List entries have to be ordered by increasing sorting priority!
condition_column]).astype(bool) selected_data = selected_data[mask, :] # Apply sorting
hits
GDF files for the spike data and DAT files for analog signals are possible.
specified to %s.' '' % column_list_no_None) # extracting condition and sorting
No spike times to ' 'be read in.')
times are collected in one # spike train with id=None else: train = data
gid_list condition_column = id_column sorting_column.append(curr_id) # Sorting
curr_id += 1 if time_column is not None: sorting_column.append(curr_id) # Sorting
Specify an empty list [] to retrieve the spike trains of all neurons.
Specify an empty list [] to retrieve the spike trains of all neurons.
List entries have to be ordered by increasing sorting priority!
condition_column]).astype(bool) selected_data = selected_data[mask, :] # Apply sorting
hits
GDF files for the spike data and DAT files for analog signals are possible.
specified to %s.' '' % column_list_no_None) # extracting condition and sorting
No spike times to ' 'be read in.')
times are collected in one # spike train with id=None else: train = data
gid_list condition_column = id_column sorting_column.append(curr_id) # Sorting
curr_id += 1 if time_column is not None: sorting_column.append(curr_id) # Sorting
Specify an empty list [] to retrieve the spike trains of all neurons.
Specify an empty list [] to retrieve the spike trains of all neurons.
List entries have to be ordered by increasing sorting priority!
condition_column]).astype(bool) selected_data = selected_data[mask, :] # Apply sorting
hits
GDF files for the spike data and DAT files for analog signals are possible.
specified to %s.' '' % column_list_no_None) # extracting condition and sorting
No spike times to ' 'be read in.')
times are collected in one # spike train with id=None else: train = data
gid_list condition_column = id_column sorting_column.append(curr_id) # Sorting
curr_id += 1 if time_column is not None: sorting_column.append(curr_id) # Sorting
Specify an empty list [] to retrieve the spike trains of all neurons.
Specify an empty list [] to retrieve the spike trains of all neurons.
List entries have to be ordered by increasing sorting priority!
condition_column]).astype(bool) selected_data = selected_data[mask, :] # Apply sorting
hits
GDF files for the spike data and DAT files for analog signals are possible.
specified to %s.' '' % column_list_no_None) # extracting condition and sorting
No spike times to ' 'be read in.')
times are collected in one # spike train with id=None else: train = data
gid_list condition_column = id_column sorting_column.append(curr_id) # Sorting
curr_id += 1 if time_column is not None: sorting_column.append(curr_id) # Sorting
Specify an empty list [] to retrieve the spike trains of all neurons.
Specify an empty list [] to retrieve the spike trains of all neurons.
List entries have to be ordered by increasing sorting priority!
condition_column]).astype(bool) selected_data = selected_data[mask, :] # Apply sorting
hits
GDF files for the spike data and DAT files for analog signals are possible.
specified to %s.' '' % column_list_no_None) # extracting condition and sorting
No spike times to ' 'be read in.')
times are collected in one # spike train with id=None else: train = data
gid_list condition_column = id_column sorting_column.append(curr_id) # Sorting
curr_id += 1 if time_column is not None: sorting_column.append(curr_id) # Sorting
Specify an empty list [] to retrieve the spike trains of all neurons.
Specify an empty list [] to retrieve the spike trains of all neurons.
List entries have to be ordered by increasing sorting priority!
condition_column]).astype(bool) selected_data = selected_data[mask, :] # Apply sorting