@@ -114,9 +114,6 @@ def __init__(
114114 time_points : int | None = None ,
115115 interpolation_strategy : InterpolationStrategyBase | None = None ,
116116 impact_computation_strategy : ImpactComputationStrategy | None = None ,
117- risk_transf_attach : float | None = None ,
118- risk_transf_cover : float | None = None ,
119- calc_residual : bool = False ,
120117 ):
121118 LOGGER .debug ("Instantiating new CalcRiskPeriod." )
122119 self ._snapshot0 = snapshot0
@@ -132,9 +129,6 @@ def __init__(
132129 self .impact_computation_strategy = (
133130 impact_computation_strategy or ImpactCalcComputation ()
134131 )
135- self .risk_transf_attach = risk_transf_attach
136- self .risk_transf_cover = risk_transf_cover
137- self .calc_residual = calc_residual
138132 self .measure = None # Only possible to set with apply_measure to make sure snapshots are consistent
139133
140134 self ._group_id_E0 = (
@@ -299,12 +293,7 @@ def impact_computation_strategy(self, value, /):
299293 @lazy_property
300294 def E0H0V0 (self ):
301295 return self .impact_computation_strategy .compute_impacts (
302- self .snapshot0 ,
303- self .snapshot1 ,
304- (0 , 0 , 0 ),
305- self .risk_transf_attach ,
306- self .risk_transf_cover ,
307- self .calc_residual ,
296+ self .snapshot0 , self .snapshot1 , (0 , 0 , 0 )
308297 )
309298
310299 @lazy_property
@@ -313,42 +302,24 @@ def E1H0V0(self):
313302 self .snapshot0 ,
314303 self .snapshot1 ,
315304 (1 , 0 , 0 ),
316- self .risk_transf_attach ,
317- self .risk_transf_cover ,
318- self .calc_residual ,
319305 )
320306
321307 @lazy_property
322308 def E0H1V0 (self ):
323309 return self .impact_computation_strategy .compute_impacts (
324- self .snapshot0 ,
325- self .snapshot1 ,
326- (0 , 1 , 0 ),
327- self .risk_transf_attach ,
328- self .risk_transf_cover ,
329- self .calc_residual ,
310+ self .snapshot0 , self .snapshot1 , (0 , 1 , 0 )
330311 )
331312
332313 @lazy_property
333314 def E1H1V0 (self ):
334315 return self .impact_computation_strategy .compute_impacts (
335- self .snapshot0 ,
336- self .snapshot1 ,
337- (1 , 1 , 0 ),
338- self .risk_transf_attach ,
339- self .risk_transf_cover ,
340- self .calc_residual ,
316+ self .snapshot0 , self .snapshot1 , (1 , 1 , 0 )
341317 )
342318
343319 @lazy_property
344320 def E0H0V1 (self ):
345321 return self .impact_computation_strategy .compute_impacts (
346- self .snapshot0 ,
347- self .snapshot1 ,
348- (0 , 0 , 1 ),
349- self .risk_transf_attach ,
350- self .risk_transf_cover ,
351- self .calc_residual ,
322+ self .snapshot0 , self .snapshot1 , (0 , 0 , 1 )
352323 )
353324
354325 @lazy_property
@@ -357,9 +328,6 @@ def E1H0V1(self):
357328 self .snapshot0 ,
358329 self .snapshot1 ,
359330 (1 , 0 , 1 ),
360- self .risk_transf_attach ,
361- self .risk_transf_cover ,
362- self .calc_residual ,
363331 )
364332
365333 @lazy_property
@@ -368,9 +336,6 @@ def E0H1V1(self):
368336 self .snapshot0 ,
369337 self .snapshot1 ,
370338 (0 , 1 , 1 ),
371- self .risk_transf_attach ,
372- self .risk_transf_cover ,
373- self .calc_residual ,
374339 )
375340
376341 @lazy_property
@@ -379,47 +344,10 @@ def E1H1V1(self):
379344 self .snapshot0 ,
380345 self .snapshot1 ,
381346 (1 , 1 , 1 ),
382- self .risk_transf_attach ,
383- self .risk_transf_cover ,
384- self .calc_residual ,
385347 )
386348
387349 ###############################
388350
389- ######## Risk transfer ########
390-
391- @property
392- def risk_transf_attach (self ):
393- return self ._risk_transfer_attach
394-
395- @risk_transf_attach .setter
396- def risk_transf_attach (self , value , / ):
397- self ._risk_transfer_attach = value
398- self ._reset_impact_data ()
399-
400- @property
401- def risk_transf_cover (self ):
402- return self ._risk_transfer_cover
403-
404- @risk_transf_cover .setter
405- def risk_transf_cover (self , value , / ):
406- self ._risk_transfer_cover = value
407- self ._reset_impact_data ()
408-
409- @property
410- def calc_residual (self ):
411- return self ._calc_residual
412-
413- @calc_residual .setter
414- def calc_residual (self , value , / ):
415- if not isinstance (value , bool ):
416- raise ValueError ("Not a boolean" )
417-
418- self ._calc_residual = value
419- self ._reset_impact_data ()
420-
421- ###############################
422-
423351 ### Impact Matrices arrays ####
424352
425353 @lazy_property
@@ -826,9 +754,6 @@ def apply_measure(self, measure: Measure):
826754 self .time_points ,
827755 self .interpolation_strategy ,
828756 self .impact_computation_strategy ,
829- self .risk_transf_attach ,
830- self .risk_transf_cover ,
831- self .calc_residual ,
832757 )
833758
834759 risk_period .measure = measure
0 commit comments