From 9c7fa459eecc5d45d8769b5400e4788baf4020ba Mon Sep 17 00:00:00 2001 From: Kabilar Gunalan Date: Thu, 24 Aug 2023 14:04:23 -0500 Subject: [PATCH] Remove probe sub-directory --- element_array_ephys/ephys_organoids.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/element_array_ephys/ephys_organoids.py b/element_array_ephys/ephys_organoids.py index 23cdb9db..c22dce9c 100644 --- a/element_array_ephys/ephys_organoids.py +++ b/element_array_ephys/ephys_organoids.py @@ -471,8 +471,8 @@ def infer_output_dir(cls, key, relative=False, mkdir=False) -> pathlib.Path: Returns: Expected clustering_output_dir based on the following convention: - processed_dir / subject_dir / probe_{insertion_number} / {clustering_method}_{paramset_idx} - e.g.: sub4/sess1/probe_2/kilosort2_0 + processed_dir / subject_dir / {clustering_method}_{paramset_idx} + e.g.: sub4/sess1/kilosort2_0 """ processed_dir = pathlib.Path(get_processed_root_data_dir()) sess_dir = find_full_path(get_ephys_root_data_dir(), get_subject_directory(key)) @@ -487,7 +487,6 @@ def infer_output_dir(cls, key, relative=False, mkdir=False) -> pathlib.Path: output_dir = ( processed_dir / sess_dir.relative_to(root_dir) - / f'probe_{key["insertion_number"]}' / f'{method}_{key["paramset_idx"]}' )