From b0fdc8113aa83ce73335a282d59a49e73cb296ce Mon Sep 17 00:00:00 2001 From: mieszkomakuch Date: Wed, 23 Apr 2025 22:11:13 +0200 Subject: [PATCH] ISEPOS-2941 Handle empty input error --- src/Mmax.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mmax.py b/src/Mmax.py index 3b747b6..a2413d7 100644 --- a/src/Mmax.py +++ b/src/Mmax.py @@ -37,6 +37,9 @@ def main(Input_catalog, Input_injection_rate, time_win_in_hours, time_step_in_ho from util.CandidateEventsTS import CandidateEventsTS from util.M_max_models import M_max_models + if Input_injection_rate is empty: + raise ValueError("Input_injection_rate contains empty value") + def latlon_to_enu(lat, lon, alt): lat0 = np.mean(lat) lon0 = np.mean(lon)