Skip to content

Commit e497a15

Browse files
Merge pull request #192 from ttngu207/dev_spikeinterface_v101
fix: use relative path for phy output
2 parents 92547d7 + b459709 commit e497a15

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

element_array_ephys/ephys_no_curation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ def make(self, key):
10451045
# Find representative channel for each unit
10461046
unit_peak_channel: dict[int, np.ndarray] = (
10471047
si.ChannelSparsity.from_best_channels(
1048-
sorting_analyzer, 1, peak_sign="neg"
1048+
sorting_analyzer, 1, peak_sign="both"
10491049
).unit_id_to_channel_indices
10501050
)
10511051
unit_peak_channel: dict[int, int] = {u: chn[0] for u, chn in unit_peak_channel.items()}
@@ -1249,7 +1249,7 @@ def make(self, key):
12491249
# Find representative channel for each unit
12501250
unit_peak_channel: dict[int, np.ndarray] = (
12511251
si.ChannelSparsity.from_best_channels(
1252-
sorting_analyzer, 1, peak_sign="neg"
1252+
sorting_analyzer, 1, peak_sign="both"
12531253
).unit_id_to_channel_indices
12541254
) # {unit: peak_channel_index}
12551255
unit_peak_channel = {u: chn[0] for u, chn in unit_peak_channel.items()}

element_array_ephys/spike_sorting/si_spike_sorting.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ def _sorting_analyzer_compute():
301301
si.exporters.export_to_phy(
302302
sorting_analyzer=sorting_analyzer,
303303
output_folder=analyzer_output_dir / "phy",
304+
use_relative_path=True,
304305
**job_kwargs,
305306
)
306307
# Generate spike interface report

0 commit comments

Comments
 (0)