Skip to content

Commit 4e1728d

Browse files
authored
Merge pull request #960 from int-brain-lab/udp_bouts_small_enhancement
added more info to failing bout detection
2 parents 4264fc3 + cf2ff7e commit 4e1728d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ibllib/io/extractors/mesoscope.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,8 @@ def get_bout_edges(self, frame_times, collections=None, events=None, min_gap=1.,
858858
include = sorted(int(c.rsplit('_', 1)[-1]) for c in collections)
859859
edges = edges[include, :]
860860
elif edges.shape[0] < len(collections):
861-
raise ValueError('More raw imaging folders than detected bouts')
861+
raise ValueError(f'More raw imaging folders (={len(collections)}) \
862+
than detected bouts (={edges.shape[0]})')
862863

863864
if display:
864865
_, ax = plt.subplots(1)

0 commit comments

Comments
 (0)