Skip to content

Commit

Permalink
improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Thinh Nguyen committed Jul 19, 2022
1 parent 3f1ee37 commit a3c5c2f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions element_array_ephys/ephys_acute.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,9 @@ def make(self, key):
raise FileNotFoundError(
'No Open Ephys data found for probe insertion: {}'.format(key))

if not probe_data.ap_meta:
raise IOError('No analog signals found - check "structure.oebin" file or "continuous" directory')

if probe_data.probe_model in supported_probe_types:
probe_type = probe_data.probe_model
electrode_query = probe.ProbeType.Electrode & {'probe_type': probe_type}
Expand Down
3 changes: 3 additions & 0 deletions element_array_ephys/ephys_chronic.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ def make(self, key):
raise FileNotFoundError(
'No Open Ephys data found for probe insertion: {}'.format(key))

if not probe_data.ap_meta:
raise IOError('No analog signals found - check "structure.oebin" file or "continuous" directory')

if probe_data.probe_model in supported_probe_types:
probe_type = probe_data.probe_model
electrode_query = probe.ProbeType.Electrode & {'probe_type': probe_type}
Expand Down
3 changes: 3 additions & 0 deletions element_array_ephys/ephys_no_curation.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@ def make(self, key):
raise FileNotFoundError(
'No Open Ephys data found for probe insertion: {}'.format(key))

if not probe_data.ap_meta:
raise IOError('No analog signals found - check "structure.oebin" file or "continuous" directory')

if probe_data.probe_model in supported_probe_types:
probe_type = probe_data.probe_model
electrode_query = probe.ProbeType.Electrode & {'probe_type': probe_type}
Expand Down

0 comments on commit a3c5c2f

Please sign in to comment.