From 23c5494674bacb6fe4b62762cdb142d998c4be1f Mon Sep 17 00:00:00 2001 From: Georg Raiser Date: Sun, 16 Mar 2025 16:54:22 +0000 Subject: [PATCH] added more info to failing bout detection --- ibllib/io/extractors/mesoscope.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ibllib/io/extractors/mesoscope.py b/ibllib/io/extractors/mesoscope.py index 5f915cf82..b95da0257 100644 --- a/ibllib/io/extractors/mesoscope.py +++ b/ibllib/io/extractors/mesoscope.py @@ -759,7 +759,7 @@ def get_bout_edges(self, frame_times, collections=None, events=None, min_gap=1., include = sorted(int(c.rsplit('_', 1)[-1]) for c in collections) edges = edges[include, :] elif edges.shape[0] < len(collections): - raise ValueError('More raw imaging folders than detected bouts') + raise ValueError(f'More raw imaging folders (={len(collections)}) than detected bouts (={edges.shape[0]})') if display: _, ax = plt.subplots(1)