Skip to content

Commit 92e30ee

Browse files
committed
Raise error
1 parent cd31e0b commit 92e30ee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

element_array_ephys/ephys_precluster.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,9 @@ def make(self, key):
343343
precluster_output_dir = find_full_path(get_ephys_root_data_dir(), output_dir)
344344

345345
if task_mode == 'none':
346+
if len((PreClusterParamSteps.Step & key).fetch()) > 0:
347+
raise ValueError('There are entries in the PreClusterParamSteps.Step '
348+
'table and task_mode=none')
346349
creation_time = (EphysRecording & key).fetch1('recording_datetime')
347350
elif task_mode == 'load':
348351
acq_software = (EphysRecording & key).fetch1('acq_software')

0 commit comments

Comments
 (0)