denisecailab / minian

miniscope analysis pipeline with interactive visualizations
GNU General Public License v3.0
91 stars 35 forks source link

Variables differ in shapes after retrieving it #238

Open tracychenxy opened 1 year ago

tracychenxy commented 1 year ago

Hi, I ran to the end of my Minian pipeline and saved all the intermediate variables for future uses. However, when I retrieved these variables, I found the shape of them dramatically differ from when I saved them. Here is an example:

A_init (when saving):

Saving

A_init (when I retrieved it):

Retrieval

I also deleted these variable and re-generated them using the ones that didn't undergo change of shape, such as "Y_hw_chk", "Y_fm_chk" and "varr_ref". But once I retrieved these variables using "open_minian", the variable again changes its shape. I noticed these changes occur only to the intermediate variables that were generated within the CNMF.

This is troublesome as I had to re-run the CNMF steps instead of using retrieved variables to start from where I left of in the CNMF process. Can someone help providing some explanations for this phenomenon? Or have you encountered this before? Maybe I mislooked anything?

Thank you so much in advance!!