Skip to content

Commit a3c5c2f

Browse files
author
Thinh Nguyen
committed
improve error message
1 parent 3f1ee37 commit a3c5c2f

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

element_array_ephys/ephys_acute.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,9 @@ def make(self, key):
295295
raise FileNotFoundError(
296296
'No Open Ephys data found for probe insertion: {}'.format(key))
297297

298+
if not probe_data.ap_meta:
299+
raise IOError('No analog signals found - check "structure.oebin" file or "continuous" directory')
300+
298301
if probe_data.probe_model in supported_probe_types:
299302
probe_type = probe_data.probe_model
300303
electrode_query = probe.ProbeType.Electrode & {'probe_type': probe_type}

element_array_ephys/ephys_chronic.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,9 @@ def make(self, key):
242242
raise FileNotFoundError(
243243
'No Open Ephys data found for probe insertion: {}'.format(key))
244244

245+
if not probe_data.ap_meta:
246+
raise IOError('No analog signals found - check "structure.oebin" file or "continuous" directory')
247+
245248
if probe_data.probe_model in supported_probe_types:
246249
probe_type = probe_data.probe_model
247250
electrode_query = probe.ProbeType.Electrode & {'probe_type': probe_type}

element_array_ephys/ephys_no_curation.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,9 @@ def make(self, key):
293293
raise FileNotFoundError(
294294
'No Open Ephys data found for probe insertion: {}'.format(key))
295295

296+
if not probe_data.ap_meta:
297+
raise IOError('No analog signals found - check "structure.oebin" file or "continuous" directory')
298+
296299
if probe_data.probe_model in supported_probe_types:
297300
probe_type = probe_data.probe_model
298301
electrode_query = probe.ProbeType.Electrode & {'probe_type': probe_type}

0 commit comments

Comments
 (0)