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

Unclear how to overwrite a dataset #1243

Open
hyanwong opened this issue Jul 26, 2024 · 2 comments
Open

Unclear how to overwrite a dataset #1243

hyanwong opened this issue Jul 26, 2024 · 2 comments

Comments

@hyanwong
Copy link

I'm using sgkit.save_dataset in a notebook. Often the cell gets run several times, but after the first time, the call fails because it won;t overwrite the existing file. It's unclear from the docs how to set "overwrite=True", which I would imagine is a common requirement. I haven't actually figured out how to do this yet.

@hyanwong
Copy link
Author

Ah, I found it: mode="w". It took me a fair while though.

@jeromekelleher
Copy link
Collaborator

Overall the write path is very unclear to me also. The documentation needs to be clearer on what's xarray's responsibility, and what is coming from sgkit. However, this would need a major refactoring, and we are focusing efforts elsewhere.

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