-
Notifications
You must be signed in to change notification settings - Fork 37
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
BUG: xarray may leave a link to file open #887
Comments
Following up on this, I've compared the pysatNASA and pysatModels log for CI tests run recently on Windows with python 3.8. Both use the same versions of xarray (0.19.0), netCDF4 (1.5.7), and pysat (3.0.1). Not sure why the ICON xarray instruments work and the model xarray instruments fail. The pysatModels log does show a different version of the github actions runner (2.280.3 instead of 2.280.2). Adding Lines 404 to 407 in 3d33e81
should fix the issue anywhere it occurs rather than fixing it after loading in other packages. |
Further testing with pysatNASA and the updated runner are working. |
Still not sure why it happens some places but not others. Not sure how to test for this, but so far it's fixed it wherever there's been a problem. |
Closing with merge of #889. |
Describe the bug
When loading xarray data via
utils.load_netcdf
, a link to the file may be left open on some windows systems. This creates issues in the unit tests observed in pysat/pysatModels#89To Reproduce
Look through logs associated with pysat/pysatModels#92
Desktop (please complete the following information):
Additional context
Not noticing problems in similar xarray instruments for pysatNASA, but could be slight version differences.
The text was updated successfully, but these errors were encountered: