From d4c0fff9af12227167c4adca3bbccead3f985856 Mon Sep 17 00:00:00 2001 From: Mieszko Makuch Date: Tue, 11 Mar 2025 10:32:28 +0100 Subject: [PATCH] ISEPOS-2325 Raise error if there is no b_method set: raise ValueError("Please chose an option for b-value") --- src/Mmax.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mmax.py b/src/Mmax.py index 4a41ab1..3b747b6 100644 --- a/src/Mmax.py +++ b/src/Mmax.py @@ -206,7 +206,8 @@ def main(Input_catalog, Input_injection_rate, time_win_in_hours, time_step_in_ho Feat_dic['Param'][0]['C'] = C if f_indx in [0,1,2,4]: - Feat_dic['Param'][0]['b_method'] = b_method + if not b_method: + raise ValueError("Please chose an option for b-value") if f_indx in [0,4]: for cl_i in cl: