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

ecmwfapi override file fails #12

Open
juntyr opened this issue Sep 2, 2024 · 3 comments
Open

ecmwfapi override file fails #12

juntyr opened this issue Sep 2, 2024 · 3 comments

Comments

@juntyr
Copy link
Member

juntyr commented Sep 2, 2024

cc jupyterlite/jupyterlite#1472

@juntyr juntyr transferred this issue from climet-eu/compression-lab-notebooks Dec 3, 2024
@juntyr
Copy link
Member Author

juntyr commented Dec 3, 2024

This should be fixed by jupyterlite/jupyterlite#1530

@juntyr juntyr mentioned this issue Dec 3, 2024
27 tasks
@juntyr
Copy link
Member Author

juntyr commented Dec 14, 2024

This is still not fixed

@juntyr
Copy link
Member Author

juntyr commented Dec 15, 2024

It seems that file writes with no content still only clear the content but don't change the size.

A fix for ecmwfapi in particular would be to replace this code here

https://github.com/ecmwf/ecmwf-api-client/blob/3f4baf3e211661c056b6b31598f775d9bf96a2d2/ecmwfapi/api.py#L540-L544

with

Path(target).unlink(missing_ok=True)

@juntyr juntyr mentioned this issue Dec 15, 2024
21 tasks
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

1 participant