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

Close netCDF files when overwriting existing files with the same name #4

Open
huard opened this issue Nov 26, 2020 · 2 comments
Open
Milestone

Comments

@huard
Copy link
Collaborator

huard commented Nov 26, 2020

Description

With xarray 0.16.1, overwriting a file on disk with the same name does not clear the cache. So when opening a file with the same name, it fetches the cached file rather than the new file on disk.

Possible solutions:

  • Given unique name to model outputs (.e.g uuid)
  • Call .close() on all opened netCDF files when overwrite=True.
@huard huard added this to the 0.3 milestone Mar 2, 2021
@huard huard modified the milestones: 0.3, v0.5 Apr 8, 2021
@Zeitsperre
Copy link
Member

@huard Could this be part of the issue we have with test instability?

@huard
Copy link
Collaborator Author

huard commented May 3, 2024

It may. You could check by running tests sequentially (no xdist)

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