Skip to content

Commit 77b5fa7

Browse files
Merge pull request #63 from dj-sciops/update-lfp
fix(si_spike_sorting): in new SI v0.103+, method name change from `channel_slice` to `select_channels`
2 parents fe43054 + 82324ef commit 77b5fa7

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

element_array_ephys/ephys_no_curation.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -408,11 +408,10 @@ def make_compute(
408408
# Downsample the signal with `decimate`
409409
lfp = signal.decimate(lfp, downsample_factor, ftype="fir", zero_phase=True)
410410
all_lfps.append(lfp)
411-
412-
execution_duration = ((
413-
datetime.now(timezone.utc) - execution_time
414-
).total_seconds()
415-
/ 3600)
411+
412+
execution_duration = (
413+
datetime.now(timezone.utc) - execution_time
414+
).total_seconds() / 3600
416415
return (
417416
all_lfps,
418417
channels,

element_array_ephys/spike_sorting/si_spike_sorting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def make(self, key):
188188
)
189189

190190
# Restrict to channels from the target port
191-
si_recording = si_recording.channel_slice(
191+
si_recording = si_recording.select_channels(
192192
si_recording.channel_ids[port_indices]
193193
)
194194

0 commit comments

Comments
 (0)