From 08d608e39d84dab15a93beb63c6d740db746b436 Mon Sep 17 00:00:00 2001 From: Mieszko Makuch Date: Mon, 2 Jun 2025 13:46:06 +0200 Subject: [PATCH] Fix: re-add missing else clause for b_method assignment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit During migration, the original fix was partially applied—`else` clause assigning `b_method` was unintentionally omitted. This commit restores the full logic as intended by the original author. --- src/Mmax.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mmax.py b/src/Mmax.py index 3b747b6..bbd8b36 100644 --- a/src/Mmax.py +++ b/src/Mmax.py @@ -207,7 +207,9 @@ def main(Input_catalog, Input_injection_rate, time_win_in_hours, time_step_in_ho if f_indx in [0,1,2,4]: if not b_method: - raise ValueError("Please chose an option for b-value") + raise ValueError("Please choose an option for b-value") + else: + Feat_dic['Param'][0]['b_method'] = b_method if f_indx in [0,4]: for cl_i in cl: