Skip to content

Commit a22561a

Browse files
authored
Merge pull request #196 from ttngu207/datajoint-spikeinterface
fix: `spikes` object no longer available from `ComputeSpikeLocations`…
2 parents 5a31632 + 1f05998 commit a22561a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

element_array_ephys/ephys_no_curation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,9 @@ def make(self, key):
10731073
}
10741074

10751075
spike_locations = sorting_analyzer.get_extension("spike_locations")
1076-
spikes_df = pd.DataFrame(spike_locations.spikes)
1076+
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))
10771079

10781080
units = []
10791081
for unit_idx, unit_id in enumerate(si_sorting.unit_ids):

0 commit comments

Comments
 (0)