Skip to content

Commit

Permalink
Merge pull request #2475 from alejoe91/nwb-extractors-set-dummy-probe
Browse files Browse the repository at this point in the history
Use `has_channel_location` instead of `get_property("contact_vector")`
  • Loading branch information
samuelgarcia authored Feb 23, 2024
2 parents e270d5f + f7c3bd9 commit fea9841
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def check_inputs(self, recording, bad_channel_ids):
if bad_channel_ids.ndim != 1:
raise TypeError("'bad_channel_ids' must be a 1d array or list.")

if recording.get_property("contact_vector") is None:
if not recording.has_channel_location():
raise ValueError("A probe must be attached to use bad channel interpolation. Use set_probe(...)")

if recording.get_probe().si_units != "um":
Expand Down

0 comments on commit fea9841

Please sign in to comment.