Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to use save_dataset to overwrite existing files #1173

Open
hyanwong opened this issue Jan 19, 2024 · 1 comment
Open

Document how to use save_dataset to overwrite existing files #1173

hyanwong opened this issue Jan 19, 2024 · 1 comment

Comments

@hyanwong
Copy link

When playing with sgkit, I seem to be wanting to save the sgkit dataset multiple times. If I have already saved the dataset to the same location, it complains that "path '' contains a group", because the default writing mode is "w-". Could it be documented that to overwrite existing file you need to specify

sg.save_dataset(ds, "test.zarr", mode="w")
@tomwhite
Copy link
Collaborator

#1125 and linked issues may be related too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants