File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -281,13 +281,22 @@ class HazardModifierConfig(_ModifierConfig):
281281 haz_type : str
282282 haz_int_mult : Optional [float ] = 1.0
283283 haz_int_add : Optional [float ] = 0.0
284+ haz_freq_mult : Optional [float ] = 1.0
285+ haz_freq_add : Optional [float ] = 0.0
284286 new_hazard_path : Optional [str ] = None
285287 impact_rp_cutoff : Optional [float ] = None
286288
287289 def __post_init__ (self ):
288290 config = self .to_dict ()
289291 if "new_hazard_path" in config and any (
290- key in config for key in ["haz_int_mult" , "haz_int_add" , "impact_rp_cutoff" ]
292+ key in config
293+ for key in [
294+ "haz_int_mult" ,
295+ "haz_int_add" ,
296+ "haz_freq_mult" ,
297+ "haz_freq_add" ,
298+ "impact_rp_cutoff" ,
299+ ]
291300 ):
292301 warnings .warn (
293302 "Both new hazard object and hazard modifiers are provided, "
You can’t perform that action at this time.
0 commit comments