-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* hazard.from_raster_xarray: close opened dataset at last * hazard.test_base_xarray: close datasets use setUpClass and tearDownClass for testfiles * CHANGELOG: added `from_raster_xarray` * hazard.Hazard.from_raster_xarray: idiomatic use of `with open` * Have two Hazard classmethods for reading xarray Dataset and file Split the existing classmethod into two methods 'from_xarray_raster' and 'from_xarray_raster_file'. One first loads data from a dataset, the second opens a file and then calls the first. * Split classmethods. * Update unit tests. * Update docstrings. * Improve tests for Hazard.from_xarray_raster(_file) * Use temporary directory for storing data instead of local directory. * Consistently open data files in context managers. * Fix linter issue "no-else-raise" * Update CHANGELOG.md --------- Co-authored-by: Lukas Riedel <[email protected]>
- Loading branch information
1 parent
8317442
commit 11a707b
Showing
3 changed files
with
341 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.