Skip to content

Commit 39c8579

Browse files
author
Thinh Nguyen
authored
configurable paramset_idx for auto ClusteringTask generation
1 parent 769de13 commit 39c8579

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

element_array_ephys/ephys_acute.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,14 +531,14 @@ def infer_output_dir(cls, key, relative=False, mkdir=False):
531531
return output_dir.relative_to(processed_dir) if relative else output_dir
532532

533533
@classmethod
534-
def auto_generate_entries(cls, ephys_recording_key):
534+
def auto_generate_entries(cls, ephys_recording_key, paramset_idx=0):
535535
"""
536536
Method to auto-generate ClusteringTask entries for a particular ephys recording
537537
Output directory is auto-generated based on the convention
538538
defined in `ClusteringTask.infer_output_dir()`
539539
Default parameter set used: paramset_idx = 0
540540
"""
541-
key = {**ephys_recording_key, 'paramset_idx': 0}
541+
key = {**ephys_recording_key, 'paramset_idx': paramset_idx}
542542

543543
processed_dir = get_processed_root_data_dir()
544544
output_dir = ClusteringTask.infer_output_dir(key, relative=False, mkdir=True)

element_array_ephys/ephys_chronic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,14 +473,14 @@ def infer_output_dir(cls, key, relative=False, mkdir=False):
473473
return output_dir.relative_to(processed_dir) if relative else output_dir
474474

475475
@classmethod
476-
def auto_generate_entries(cls, ephys_recording_key):
476+
def auto_generate_entries(cls, ephys_recording_key, paramset_idx=0):
477477
"""
478478
Method to auto-generate ClusteringTask entries for a particular ephys recording
479479
Output directory is auto-generated based on the convention
480480
defined in `ClusteringTask.infer_output_dir()`
481481
Default parameter set used: paramset_idx = 0
482482
"""
483-
key = {**ephys_recording_key, 'paramset_idx': 0}
483+
key = {**ephys_recording_key, 'paramset_idx': paramset_idx}
484484

485485
processed_dir = get_processed_root_data_dir()
486486
output_dir = ClusteringTask.infer_output_dir(key, relative=False, mkdir=True)

element_array_ephys/ephys_no_curation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,14 +530,14 @@ def infer_output_dir(cls, key, relative=False, mkdir=False):
530530
return output_dir.relative_to(processed_dir) if relative else output_dir
531531

532532
@classmethod
533-
def auto_generate_entries(cls, ephys_recording_key):
533+
def auto_generate_entries(cls, ephys_recording_key, paramset_idx=0):
534534
"""
535535
Method to auto-generate ClusteringTask entries for a particular ephys recording
536536
Output directory is auto-generated based on the convention
537537
defined in `ClusteringTask.infer_output_dir()`
538538
Default parameter set used: paramset_idx = 0
539539
"""
540-
key = {**ephys_recording_key, 'paramset_idx': 0}
540+
key = {**ephys_recording_key, 'paramset_idx': paramset_idx}
541541

542542
processed_dir = get_processed_root_data_dir()
543543
output_dir = ClusteringTask.infer_output_dir(key, relative=False, mkdir=True)

0 commit comments

Comments
 (0)