Skip to content

Commit

Permalink
Remove probe sub-directory
Browse files Browse the repository at this point in the history
  • Loading branch information
kabilar committed Aug 24, 2023
1 parent fcd56db commit 9c7fa45
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions element_array_ephys/ephys_organoids.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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"]}'
)

Expand Down

0 comments on commit 9c7fa45

Please sign in to comment.