From 5f28064c417831aa32ad341951b2cb27b766faf8 Mon Sep 17 00:00:00 2001 From: Richard Styron Date: Thu, 19 Feb 2026 07:45:23 -0800 Subject: [PATCH] fixed datetime problem --- openquake/hme/model_test_frameworks/gem/gem_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openquake/hme/model_test_frameworks/gem/gem_tests.py b/openquake/hme/model_test_frameworks/gem/gem_tests.py index 391265d..506a8cc 100644 --- a/openquake/hme/model_test_frameworks/gem/gem_tests.py +++ b/openquake/hme/model_test_frameworks/gem/gem_tests.py @@ -448,7 +448,7 @@ def cumulative_occurrence_eval(cfg, input_data): if not comp_table: start_dates = {k: start_date for k in mag_bins.keys()} - t_yrs = stop_date - start_date + t_yrs = (stop_date - start_date).days / 365.25 else: start_dates = { k: f"{get_mag_year_from_comp_table(comp_table, k)[1]}-01-01"