diff --git a/src/seismic_hazard_forecasting.py b/src/seismic_hazard_forecasting.py index e41d787..2213c35 100644 --- a/src/seismic_hazard_forecasting.py +++ b/src/seismic_hazard_forecasting.py @@ -339,8 +339,8 @@ verbose: {verbose}") elif time_unit == 'years': multiplicator = 1 / 365 - # Raise an exception when time_range from the user is too large - if time_range/multiplicator > 0.5*(time[-1] - time[0]): + # Raise an exception when time_win_duration from the user is too large relative to the catalog + if time_win_duration/multiplicator > 0.5*(time[-1] - time[0]): msg = "Activity rate estimation time window must be less than half the catalog length. Use a shorter time window." logger.error(msg) raise Exception(msg)