Skip to content

Commit 0ade344

Browse files
author
Thinh Nguyen
committed
catGT checks and parameterizable
1 parent 63dbd12 commit 0ade344

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

element_array_ephys/ephys_acute.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,10 @@ def make(self, key):
841841
spikeglx_meta_filepath.parent
842842
)
843843
spikeglx_recording.validate_file("ap")
844+
run_CatGT = (
845+
params.pop("run_CatGT", True)
846+
and "_tcat." not in spikeglx_meta_filepath.stem
847+
)
844848

845849
if clustering_method.startswith("pykilosort"):
846850
kilosort_triggering.run_pykilosort(
@@ -861,7 +865,7 @@ def make(self, key):
861865
ks_output_dir=kilosort_dir,
862866
params=params,
863867
KS2ver=f'{Decimal(clustering_method.replace("kilosort", "")):.1f}',
864-
run_CatGT=True,
868+
run_CatGT=run_CatGT,
865869
)
866870
run_kilosort.run_modules()
867871
elif acq_software == "Open Ephys":

element_array_ephys/ephys_chronic.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,10 @@ def make(self, key):
773773
spikeglx_meta_filepath.parent
774774
)
775775
spikeglx_recording.validate_file("ap")
776+
run_CatGT = (
777+
params.pop("run_CatGT", True)
778+
and "_tcat." not in spikeglx_meta_filepath.stem
779+
)
776780

777781
if clustering_method.startswith("pykilosort"):
778782
kilosort_triggering.run_pykilosort(
@@ -793,7 +797,7 @@ def make(self, key):
793797
ks_output_dir=kilosort_dir,
794798
params=params,
795799
KS2ver=f'{Decimal(clustering_method.replace("kilosort", "")):.1f}',
796-
run_CatGT=True,
800+
run_CatGT=run_CatGT,
797801
)
798802
run_kilosort.run_modules()
799803
elif acq_software == "Open Ephys":

element_array_ephys/ephys_no_curation.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,10 @@ def make(self, key):
847847
spikeglx_meta_filepath.parent
848848
)
849849
spikeglx_recording.validate_file("ap")
850+
run_CatGT = (
851+
params.pop("run_CatGT", True)
852+
and "_tcat." not in spikeglx_meta_filepath.stem
853+
)
850854

851855
if clustering_method.startswith("pykilosort"):
852856
kilosort_triggering.run_pykilosort(
@@ -867,7 +871,7 @@ def make(self, key):
867871
ks_output_dir=kilosort_dir,
868872
params=params,
869873
KS2ver=f'{Decimal(clustering_method.replace("kilosort", "")):.1f}',
870-
run_CatGT=True,
874+
run_CatGT=run_CatGT,
871875
)
872876
run_kilosort.run_modules()
873877
elif acq_software == "Open Ephys":

0 commit comments

Comments
 (0)