Skip to content

Commit

Permalink
assertion reversed fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
oliche committed Jul 19, 2024
1 parent c29906e commit 5ce215a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibllib/pipes/ephys_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ def _run(self):
"""
efiles = spikeglx.glob_ephys_files(self.session_path.joinpath(self.device_collection, self.pname))
ap_files = [(ef.get("ap"), ef.get("label")) for ef in efiles if "ap" in ef.keys()]
assert len(ap_files) == 0, f"No ap file found for probe {self.session_path.joinpath(self.device_collection, self.pname)}"
assert len(ap_files) != 0, f"No ap file found for probe {self.session_path.joinpath(self.device_collection, self.pname)}"
assert len(ap_files) == 1, f"Several bin files found for the same probe {ap_files}"
ap_file, label = ap_files[0]
out_files = []
Expand Down

0 comments on commit 5ce215a

Please sign in to comment.