Skip to content

Commit 2da5952

Browse files
committed
Removes remaining global risk transfer code
1 parent cf40e8f commit 2da5952

1 file changed

Lines changed: 1 addition & 27 deletions

File tree

climada/trajectories/impact_calc_strat.py

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def compute_impacts(
9595
vul: ImpactFuncSet,
9696
) -> Impact:
9797
"""
98-
Calculates the impact and applies the "global" risk transfer mechanism.
98+
Calculates the impact.
9999
100100
Parameters
101101
----------
@@ -111,30 +111,4 @@ def compute_impacts(
111111
Impact
112112
The final impact object.
113113
"""
114-
impact = self.compute_impacts_pre_transfer(exp, haz, vul)
115-
return impact
116-
117-
def compute_impacts_pre_transfer(
118-
self,
119-
exp: Exposures,
120-
haz: Hazard,
121-
vul: ImpactFuncSet,
122-
) -> Impact:
123-
"""
124-
Calculates the raw impact matrix before any risk transfer is applied.
125-
126-
Parameters
127-
----------
128-
exp : Exposures
129-
The exposure data.
130-
haz : Hazard
131-
The hazard data.
132-
vul : ImpactFuncSet
133-
The set of vulnerability functions.
134-
135-
Returns
136-
-------
137-
Impact
138-
An Impact object containing the raw, pre-transfer impact matrix.
139-
"""
140114
return ImpactCalc(exposures=exp, impfset=vul, hazard=haz).impact()

0 commit comments

Comments
 (0)