You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---------------------------------------------------------------------------BatchItemUnsuccessfulErrorTraceback (mostrecentcalllast)
CellIn [24], line21df=df.caiman.reload_from_disk()
---->2df.iloc[-1].mcorr.get_output()
File~/repos/mesmerize-core/mesmerize_core/caiman_extensions/_utils.py:24, invalidate.<locals>.dec.<locals>.wrapper(self, *args, **kwargs)
22ifnotself._series["outputs"]["success"]:
23tb=self._series["outputs"]["traceback"]
--->24raiseBatchItemUnsuccessfulError(f"Batch item was unsuccessful, traceback from subprocess:\n{tb}")
25returnfunc(self, *args, **kwargs)
BatchItemUnsuccessfulError: Batchitemwasunsuccessful, tracebackfromsubprocess:
multiprocessing.pool.RemoteTraceback:
"""Traceback (most recent call last): File "/usr/local/lib/python3.10/multiprocessing/pool.py", line 125, in worker result = (True, func(*args, **kwds)) File "/usr/local/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar return list(map(*args)) File "/home/kushalk/repos/CaImAn/caiman/summary_images.py", line 784, in local_correlations_movie_parallel mv = cm.load(mv_name, subindices=idx, in_memory=True) File "/home/kushalk/repos/CaImAn/caiman/base/movies.py", line 1447, in load return load_movie_chain(file_name, File "/home/kushalk/repos/CaImAn/caiman/base/movies.py", line 1774, in load_movie_chain m = load(f, File "/home/kushalk/repos/CaImAn/caiman/base/movies.py", line 1706, in load images = images[subindices] File "/home/kushalk/python-venvs/mescore/lib/python3.10/site-packages/numpy/core/memmap.py", line 334, in __getitem__ res = super().__getitem__(index)IndexError: index -700 is out of bounds for axis 0 with size 300"""Theaboveexceptionwasthedirectcauseofthefollowingexception:
Traceback (mostrecentcalllast):
File"/home/kushalk/repos/mesmerize-core/mesmerize_core/algorithms/mcorr.py", line95, inrun_algoCns=local_correlations_movie_offline(
File"/home/kushalk/repos/CaImAn/caiman/summary_images.py", line773, inlocal_correlations_movie_offlineparallel_result=dview.map_async(local_correlations_movie_parallel, params).get(4294967)
File"/usr/local/lib/python3.10/multiprocessing/pool.py", line771, ingetraiseself._valueIndexError: index-700isoutofboundsforaxis0withsize300
traceback, this input video had 300 frames:
The issue actually comes from computing the local correlations, we set the default window_size to 1000: https://github.com/nel-lab/mesmerize-core/blob/master/mesmerize_core/algorithms/mcorr.py#L98
We should probably allow a parameter outside of
"main"
where these things can be set.The text was updated successfully, but these errors were encountered: