@@ -556,6 +556,7 @@ def test_local_exceedance_impact(self):
556556 method = "extrapolate" ,
557557 log_frequency = False ,
558558 log_impact = False ,
559+ bin_decimals = 2 ,
559560 )
560561 np .testing .assert_allclose (
561562 impact_stats .values [:, 1 :].astype (float ),
@@ -594,7 +595,7 @@ def test_local_exceedance_impact_methods(self):
594595
595596 # test log log extrapolation
596597 impact_stats , _ , _ = impact .local_exceedance_impact (
597- return_periods = (1000 , 30 , 0.1 ), method = "extrapolate"
598+ return_periods = (1000 , 30 , 0.1 ), method = "extrapolate" , bin_decimals = 2
598599 )
599600 np .testing .assert_allclose (
600601 impact_stats .values [:, 1 :].astype (float ),
@@ -661,6 +662,7 @@ def test_local_return_period(self):
661662 method = "extrapolate" ,
662663 log_frequency = False ,
663664 log_impact = False ,
665+ bin_decimals = 2 ,
664666 )
665667
666668 np .testing .assert_allclose (
@@ -707,7 +709,7 @@ def test_local_return_period_methods(self):
707709
708710 # test log log extrapolation
709711 return_stats , _ , _ = impact .local_return_period (
710- threshold_impact = (0.1 , 300 , 1e5 ), method = "extrapolate"
712+ threshold_impact = (0.1 , 300 , 1e5 ), method = "extrapolate" , bin_decimals = 2
711713 )
712714 np .testing .assert_allclose (
713715 return_stats .values [:, 1 :].astype (float ),
0 commit comments