Skip to content

index -900 is out of bounds for axis 0 with size 100 #919

Closed
@MarziyehPourmousavi

Description

@MarziyehPourmousavi

For better support, please use the template below to submit your issue. When your issue gets resolved please remember to close it.

Sometimes errors while running CNMF occur during parallel processing which prevents the log to provide a meaningful error message. Please reproduce your error with setting dview=None.

If you need to upgrade CaImAn follow the instructions given in the documentation.

  • Tell us a bit about your setup:
  1. Operating system (Linux/macOS/Windows):

  2. Python version (3.x):

  3. Working environment (Python IDE/Jupyter Notebook/other):

  4. Which of the demo scripts you're using for your analysis (if applicable):

  5. CaImAn version*:

  6. CaImAn installation process (pip install ./pip install -e ./conda):

*You can get the CaImAn version by creating a params object and then typing params.data['caiman_version']. If the field doesn't exist, type N/A and consider upgrading)

Traceback (most recent call last):

File "C:\Users\TANDIS\caiman_data\demos\general\demo_pipeline.py", line 276, in
main()

File "C:\Users\TANDIS\caiman_data\demos\general\demo_pipeline.py", line 208, in main
Cns = local_correlations_movie_offline(mc.mmap_file[0],

File "c:\users\tandis\caiman\caiman\summary_images.py", line 773, in local_correlations_movie_offline
parallel_result = dview.map_async(local_correlations_movie_parallel, params).get(4294967)

File "C:\Users\TANDIS\anaconda3\lib\multiprocessing\pool.py", line 771, in get
raise self._value

File "C:\Users\TANDIS\anaconda3\lib\multiprocessing\pool.py", line 125, in worker
result = (True, func(*args, **kwds))

File "C:\Users\TANDIS\anaconda3\lib\multiprocessing\pool.py", line 48, in mapstar
return list(map(*args))

File "c:\users\tandis\caiman\caiman\summary_images.py", line 784, in local_correlations_movie_parallel
mv = cm.load(mv_name, subindices=idx, in_memory=True)

File "c:\users\tandis\caiman\caiman\base\movies.py", line 1715, in load
images = images[subindices]

File "C:\Users\TANDIS\anaconda3\lib\site-packages\numpy\core\memmap.py", line 331, in getitem
res = super(memmap, self).getitem(index)

IndexError: index -900 is out of bounds for axis 0 with size 100

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions