Skip to content

Commit

Permalink
remove traces of Hazard.from_mat
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuel-schmid committed Nov 7, 2024
1 parent d195226 commit bb9428c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ CLIMADA tutorials. [#872](https://github.com/CLIMADA-project/climada_python/pull
### Removed

- climada.hazard.base.Hazard.clear
- climada.hazard.base.Hazard.from_mat
- climada.hazard.base.Hazard.raster_to_vector
- climada.hazard.base.Hazard.read_mat
- climada.hazard.base.Hazard.reproject_raster
Expand Down
2 changes: 1 addition & 1 deletion climada/engine/impact_calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def impact(
Examples
--------
>>> haz = Hazard.from_mat(HAZ_DEMO_MAT) # Set hazard
>>> haz = Hazard.from_hdf5(HAZ_DEMO_H5) # Set hazard
>>> impfset = ImpactFuncSet.from_excel(ENT_TEMPLATE_XLS)
>>> exp = Exposures(pd.read_excel(ENT_TEMPLATE_XLS))
>>> impcalc = ImpactCal(exp, impfset, haz)
Expand Down
2 changes: 1 addition & 1 deletion climada/hazard/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def __init__(
Take hazard values from file:
>>> haz = Hazard.from_mat(HAZ_DEMO_MAT, 'demo')
>>> haz = Hazard.from_hdf5(HAZ_DEMO_H5)
"""
self.haz_type = haz_type
Expand Down

0 comments on commit bb9428c

Please sign in to comment.