| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
* ci: Add job for Mamba installation * ci: Import CLIMADA in bash and powershell * ci: Run impact test when testing the installation
… attrs keyword The Hazard.from_raster method allows you to specify an `attrs` dictionary to set additional parameters in the created Hazard's `__init__` method. This commit - allows you to set both 'unit' and 'units' which will be used as the 'units' parameter when the Hazard object is created, with 'units' taking priority. Currently only 'unit' is accepted which is very counterintuitive, since all other attributes are exactly as specified in the `__init__` - adds an ATTRS_TO_CHECK constant to the hazard module's io.py so that the user can see what is supported in the source code (and removes a comment that suggests doing this). - updates the documentation
- Allow event names that are integers (some test files have integer names) - even though this is NOT ALLOWED - Allow core or numpy integers/booleans/strings
|
Nice! I also found this to be a bother! Happy to review when needed :) |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The Hazard.from_raster method allows you to specify an attrs dictionary that are passed to the created Hazard's __init__ method. It behaves differently from a normal kwargs argument in that the attributes are processed and "sensible defaults" are provided when they are missing.
The issues
This commit
PR Author Checklist
PR Reviewer Checklist