Closed ledm closed 1 year ago
Note that I've only changed the coast.py
so far. This should probably be changed in:
Failed test is due to GitAction not being able to commit to Forked branch. It regenerates unit_testing/unit_test_contents.txt
. But no changes are needed. And associate ticket is created #591 .
Pull request checklist
close #581.
Minor change to the loading method to "with as" instead of
file = load_file()
. This makes it more error proof and safely closes netcdf files correctly, even if we get an exception or seg fault along the way.Please check if your PR fulfills the following requirements:
COAsT-site
repo, in a separate PR. See contributing to documentation for details../build.sh
) was run locally and no errors reportedpylint .
) has passed locally and any fixes were made for failuresPull request type
Please check the type of change your PR introduces: - [x] Bugfix - [ ] Feature - [x] Code style update (formatting, renaming) - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes - [ ] Documentation content changes - [ ] Other (please describe): Updated loading method to "with as" instead of `file = load_file()`. This makes it more error proof and safely closes netcdf files correctly, even if we get an exception or seg fault along the way. ## What is the current behavior?Issue URL: #581
What is the new behavior?
-
Checklist
Does this introduce a breaking change?
Other information