Skip to content

Commit bb9428c

Browse files
remove traces of Hazard.from_mat
1 parent d195226 commit bb9428c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ CLIMADA tutorials. [#872](https://github.com/CLIMADA-project/climada_python/pull
136136
### Removed
137137

138138
- climada.hazard.base.Hazard.clear
139+
- climada.hazard.base.Hazard.from_mat
139140
- climada.hazard.base.Hazard.raster_to_vector
140141
- climada.hazard.base.Hazard.read_mat
141142
- climada.hazard.base.Hazard.reproject_raster

climada/engine/impact_calc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def impact(
107107
108108
Examples
109109
--------
110-
>>> haz = Hazard.from_mat(HAZ_DEMO_MAT) # Set hazard
110+
>>> haz = Hazard.from_hdf5(HAZ_DEMO_H5) # Set hazard
111111
>>> impfset = ImpactFuncSet.from_excel(ENT_TEMPLATE_XLS)
112112
>>> exp = Exposures(pd.read_excel(ENT_TEMPLATE_XLS))
113113
>>> impcalc = ImpactCal(exp, impfset, haz)

climada/hazard/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def __init__(
184184
185185
Take hazard values from file:
186186
187-
>>> haz = Hazard.from_mat(HAZ_DEMO_MAT, 'demo')
187+
>>> haz = Hazard.from_hdf5(HAZ_DEMO_H5)
188188
189189
"""
190190
self.haz_type = haz_type

0 commit comments

Comments
 (0)