Skip to content

Commit 67a1ffc

Browse files
committed
feat: save spike interface results with relative path
1 parent aff15bf commit 67a1ffc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

element_array_ephys/spike_sorting/si_spike_sorting.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def make(self, key):
150150
# Run preprocessing and save results to output folder
151151
si_preproc_func = getattr(si_preprocessing, params["SI_PREPROCESSING_METHOD"])
152152
si_recording = si_preproc_func(si_recording)
153-
si_recording.dump_to_pickle(file_path=recording_file)
153+
si_recording.dump_to_pickle(file_path=recording_file, relative_to=output_dir)
154154

155155
self.insert1(
156156
{
@@ -203,7 +203,7 @@ def make(self, key):
203203
sorting_save_path = (
204204
output_dir / sorter_name / "spike_sorting" / "si_sorting.pkl"
205205
)
206-
si_sorting.dump_to_pickle(sorting_save_path)
206+
si_sorting.dump_to_pickle(sorting_save_path, relative_to=output_dir)
207207

208208
self.insert1(
209209
{

0 commit comments

Comments
 (0)