MouseLand / suite2p

cell detection in calcium imaging recordings
http://www.suite2p.org
GNU General Public License v3.0
345 stars 239 forks source link

Shape mismatch error #876

Closed andrewluskin closed 1 year ago

andrewluskin commented 2 years ago

Hi! I've been encountering the following error when running suite2p:

----------- SPIKE DECONVOLUTION
----------- Total 0.16 sec.
Plane 1 processed in 216.69 sec (can open in GUI).
total = 469.15 sec.
Creating combined view
>>>ERROR<<<
Traceback (most recent call last):
  File "C:\Users\Analysiscomputer\anaconda3\envs\suite2p\lib\runpy.py", line 194, in _run_module_as_main
>>>ERROR<<<
    return _run_code(code, main_globals, None,
  File "C:\Users\Analysiscomputer\anaconda3\envs\suite2p\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\Analysiscomputer\anaconda3\envs\suite2p\lib\site-packages\suite2p\__main__.py", line 78, in <module>
    main()
  File "C:\Users\Analysiscomputer\anaconda3\envs\suite2p\lib\site-packages\suite2p\__main__.py", line 71, in main
    run_s2p(ops, db)
  File "C:\Users\Analysiscomputer\anaconda3\envs\suite2p\lib\site-packages\suite2p\run_s2p.py", line 438, in run_s2p
    io.combined(save_folder, save=True)
  File "C:\Users\Analysiscomputer\anaconda3\envs\suite2p\lib\site-packages\suite2p\io\save.py", line 106, in combined
    meanImgE[np.ix_(yrange, xrange)] = ops['meanImgE']
ValueError: shape mismatch: value array of shape (1028,1024) could not be broadcast to indexing result of shape (512,512)
Interrupted by error (not finished)

This error persists when running stacked OME-tiffs (7.34 GB file) and with the images in separate files. I have tried reinstalling suite2p but I encounter the same error. Do you have any suggestions?

chriski777 commented 2 years ago

Hey @Andrew-ell, thanks for letting us know about this issue. It's a bit difficult for us to replicate this issue on our side. Do you think it would be possible to include a link to download the files that are causing this issue?

andrewluskin commented 2 years ago

Thank you; I have shared the file at https://www.dropbox.com/s/ek528gcsicjql2d/M28.tiff?dl=0

chriski777 commented 1 year ago

Hey @Andrew-ell, sorry, but the link expired. Could you upload the data again? Thanks!

andrewluskin commented 1 year ago

It is now linked at https://www.dropbox.com/s/ylgai9t6h208bfc/M28.tiff?dl=0

Thanks!

chriski777 commented 1 year ago

Hi @Andrew-ell, sorry for the late reply! Can you elaborate on what settings you had in your ops.npy file? I've tried running suite2p with the default settings on this data file and it seems to run fine on my end... It would be great if you could just send this file (if you can)!

chriski777 commented 1 year ago

Hi @Andrew-ell, I'll be closing this issue now due to inactivity. Feel free to reopen it if the issue persists with the latest version of suite2p!