Closed mzouink closed 1 year ago
I like the idea of using stores as a more general interface for the Zarr read/write nodes, but I'm not sure if I like the new interface with a mandatory filename and optional store. So I guess if I had a store my_zarr_store
I wanted to use it would be something like ZarrSource(filename="placeholder_filename", datasets=..., store=my_zarr_store)
?
I think it would be nicer to mimic the open interface where store is a "Optional[Union[BaseStore, MutableMapping, str]]" and we get just rename the filename
arg.
Seems like you might have what you want if you just remove the ensure_string
helper function around filename
.
I agree with you @pattonw, i just didn't want to brake the existant work and tutorials i will try to do it in a better way but without breaking things
@pattonw can you please check it
I think that looks good. could you add some quick tests for reading/writing to different store types. and rebase to target branch v1.3-dev since this is a breaking change
merged into v1.3-dev
Fixing https://github.com/funkey/gunpowder/issues/184 Pre-Merge Checklist:
vX.Y-dev
)patch-X.Y.Z
)