@@ -485,7 +485,7 @@ def local_exceedance_intensity(
485485 self ,
486486 return_periods = (25 , 50 , 100 , 250 ),
487487 method = "interpolate" ,
488- min_intensity = None ,
488+ min_intensity = 0 ,
489489 log_frequency = True ,
490490 log_intensity = True ,
491491 bin_decimals = None ,
@@ -512,8 +512,7 @@ def local_exceedance_intensity(
512512 periods and extends the interpolation between these points to the given return period
513513 (similar for small return periods). Defauls to "interpolate".
514514 min_intensity : float, optional
515- Minimum threshold to filter the hazard intensity. If set to None, self.intensity_thres
516- will be used. Defaults to None.
515+ Minimum threshold to filter the hazard intensity. Defaults to 0.
517516 log_frequency : bool, optional
518517 If set to True, (cummulative) frequency values are converted to log scale before
519518 inter- and extrapolation. Defaults to True.
@@ -554,8 +553,6 @@ def local_exceedance_intensity(
554553 intensities range from 1e6 to 1e9, you could use bin_decimals=-5, if your intensities
555554 range from 0.0001 to .01, you could use bin_decimals=5.
556555 """
557- if not min_intensity and min_intensity != 0 :
558- min_intensity = self .intensity_thres
559556 # check frequency unit
560557 return_period_unit = u_dt .convert_frequency_unit_to_time_unit (
561558 self .frequency_unit
@@ -639,7 +636,7 @@ def local_return_period(
639636 self ,
640637 threshold_intensities = (10.0 , 20.0 ),
641638 method = "interpolate" ,
642- min_intensity = None ,
639+ min_intensity = 0 ,
643640 log_frequency = True ,
644641 log_intensity = True ,
645642 bin_decimals = None ,
@@ -667,8 +664,7 @@ def local_return_period(
667664 points to the given threshold intensity (similar for small threshold intensites).
668665 Defaults to "interpolate".
669666 min_intensity : float, optional
670- Minimum threshold to filter the hazard intensity. If set to None, self.intensity_thres
671- will be used. Defaults to None.
667+ Minimum threshold to filter the hazard intensity. Defaults to 0.
672668 log_frequency : bool, optional
673669 If set to True, (cummulative) frequency values are converted to log scale before
674670 inter- and extrapolation. Defaults to True.
@@ -710,8 +706,6 @@ def local_return_period(
710706 intensities range from 1e6 to 1e9, you could use bin_decimals=-5, if your intensities
711707 range from 0.0001 to .01, you could use bin_decimals=5.
712708 """
713- if not min_intensity and min_intensity != 0 :
714- min_intensity = self .intensity_thres
715709 # check frequency unit
716710 return_period_unit = u_dt .convert_frequency_unit_to_time_unit (
717711 self .frequency_unit
0 commit comments