-
Notifications
You must be signed in to change notification settings - Fork 3
Fix unclosed file warnings #53
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
Fix unclosed file warnings #53
Conversation
|
Here is a script to display warnings: import xarray as xr
from xarray_selafin.xarray_backend import SelafinBackendEntrypoint
import warnings
warnings.simplefilter("default")
slf_in = "tests/data/r3d_tidal_flats.slf"
ds = xr.open_dataset(slf_in, engine=SelafinBackendEntrypoint)
ds.selafin.write("OUT.slf")
ds.close()The generated output: It shows that without this PR, there are 2 warnings:
|
tomsail
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one looks good to me.
@pmav99 do you have any comments on the tests?
|
Hi @lucduron, would you know I actually get an error now? |
|
Hi @tomsail, thank for you for the integration of different PRs. I had a look and it seems that my modification on |
|
@tomsail , I noticed some changes on |
|
thanks @lucduron I took the wrong incoming changes when merging online.
In this PR, the only changes I see are the ones you did in commit 55beefe, which are fine for me. Did you mean more changes? |
|
Hi @tomsail, it seems OK indeed for the tests, sorry for the confusion. |
No description provided.