How to change the meta dict keys in the result file? #144
-
Sorry, it might be a stupid question cz I'm really not familiar with the data structure. I can assign new session name by minian_dt["session"]="foo", but when I saves it by minian_dt.to_zarr, the folder structure seems different from what I get from save_minian in the pipeline, and I cannot open it by open_minian. I also tried save_minian(minian_dt, dpath), but not working, maybe I was doing it not properly, like this, I got the following error: minian_ds=save_minian(minian_ds.rename("ds"), dpath, meta_dict=dict(session="s9170_210612_A", animal="Data"), overwrite=True) ValueError: the first argument to .rename must be a dictionary |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey sorry for the belated reply!
|
Beta Was this translation helpful? Give feedback.
Hey sorry for the belated reply!
post_process
argument to open_minian. So you would basically do something like this:if you do want to correct the data on-disk so you don't have to worry about fixing it everytime, you can easily do so with
to_zarr
as you noted. Minian dataset is…