Skip to content

Commit 23c5494

Browse files
committed
added more info to failing bout detection
1 parent b11b37e commit 23c5494

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ibllib/io/extractors/mesoscope.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ def get_bout_edges(self, frame_times, collections=None, events=None, min_gap=1.,
759759
include = sorted(int(c.rsplit('_', 1)[-1]) for c in collections)
760760
edges = edges[include, :]
761761
elif edges.shape[0] < len(collections):
762-
raise ValueError('More raw imaging folders than detected bouts')
762+
raise ValueError(f'More raw imaging folders (={len(collections)}) than detected bouts (={edges.shape[0]})')
763763

764764
if display:
765765
_, ax = plt.subplots(1)

0 commit comments

Comments
 (0)