We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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?
to your account
I think cdms should support context management with the with keyword. So the idea is to have something similar to how files are handled in Python:
with cdms2.open('precc.nc') as precc_file:
var = precc_file('PRECC')
This automatically has exception handling and automatically closes the file after leaving the scope. All that is needed is to implement __enter__() and __exit__() functions.
The text was updated successfully, but these errors were encountered:
should be fixed by #121
Sorry, something went wrong.
No branches or pull requests