Skip to content
Discussion options

You must be logged in to vote

Hey sorry for the belated reply!

  1. there's no built-in function to change the metadata of existing data on disk, since it's a bit to tricky to generalize all the re-writing cases and we'd like to avoid any data loss. The built-in way to correct for this is actually to correct it on-the-fly everytime during load time -- through the post_process argument to open_minian. So you would basically do something like this:
def correct_meta(ds, dpath):
    ds['session'] = 'foo'
    return ds

open_minian(..., post_process=correct_meta)
  1. 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…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Yifang-Yuan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants