We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
spikes
ComputeSpikeLocations
1 parent 5a31632 commit 1f05998Copy full SHA for 1f05998
element_array_ephys/ephys_no_curation.py
@@ -1073,7 +1073,9 @@ def make(self, key):
1073
}
1074
1075
spike_locations = sorting_analyzer.get_extension("spike_locations")
1076
- spikes_df = pd.DataFrame(spike_locations.spikes)
+ extremum_channel_inds = si.template_tools.get_template_extremum_channel(sorting_analyzer, outputs="index")
1077
+ spikes_df = pd.DataFrame(
1078
+ sorting_analyzer.sorting.to_spike_vector(extremum_channel_inds=extremum_channel_inds))
1079
1080
units = []
1081
for unit_idx, unit_id in enumerate(si_sorting.unit_ids):
0 commit comments