kushalkolar / MESmerize

Platform for Calcium Imaging analysis. DEPRECATED.
GNU General Public License v3.0
58 stars 14 forks source link

[BUG] <CNMF saving bug> #95

Closed daiyh98 closed 2 years ago

daiyh98 commented 2 years ago

Describe the bug hello, I performed the CNMF plugin on a tiff image. Everything went well until it raised an error on saving files in the end

To Reproduce Steps to reproduce the behavior, for example:

  1. Go to 'batch manager'
  2. Click on 'start'
  3. Scroll down to 'output'
  4. See error

Expected behavior I wished it could successfully finish CNMF algorithm and when I double click the batch name, I could see the final segmentation result

Copy paste message from the error window (if any) status: 0 output_info: Traceback (most recent call last): File "/home/donglab/mesmerize/lib/python3.6/site-packages/mesmerize/viewer/modules/batch_run_modules/CNMF.py", line 60, in run run_single(batch_dir, UUID, output) File "/home/donglab/mesmerize/lib/python3.6/site-packages/mesmerize/viewer/modules/batch_run_modules/CNMF.py", line 158, in run_single cnm.save(out_filename) File "/home/donglab/mesmerize/CaImAn/caiman/source_extraction/cnmf/cnmf.py", line 667, in save save_dict_to_hdf5(self.dict, filename) File "/home/donglab/mesmerize/CaImAn/caiman/utils/utils.py", line 429, in save_dict_to_hdf5 recursively_save_dict_contents_to_group(h5file, subdir, dic) File "/home/donglab/mesmerize/CaImAn/caiman/utils/utils.py", line 524, in recursively_save_dict_contents_to_group recursively_save_dict_contents_to_group(h5file, path + key + '/', item.dict) File "/home/donglab/mesmerize/CaImAn/caiman/utils/utils.py", line 509, in recursively_save_dict_contents_to_group recursively_save_dict_contents_to_group(h5file, path + key + '/', item) File "/home/donglab/mesmerize/CaImAn/caiman/utils/utils.py", line 496, in recursively_save_dict_contents_to_group raise ValueError('Error while saving {}.'.format(key)) ValueError: Error while saving var_name_hdf5. Copy-paste or take a screenshot of the terminal that Mesmerize is running in

![9de439490c4202be13972999e0fdb0b](https://user-images.githubusercontent.com/43029102/159273828-7d6250bc-0bee-4329-b98d-a218cb5b3643.png)

Make sure the entire stack trace is visible, and all messages relevant to the issue are visible.

If relevant, messages from the batch manager terminal

Operating System & specs (CPU, RAM etc.). Please complete the following information:

Details about your Mesmerize install

Environment

kushalkolar commented 2 years ago

Caiman requires h5py v2.10.0:

pip uninstall h5py && pip install h5py~=2.10.0
kushalkolar commented 2 years ago

@daiyh98 did this fix the issue?

kushalkolar commented 2 years ago

closing due to inactivity