From 77735cdd25977a23fd7eb7bbd5b352821183b65e Mon Sep 17 00:00:00 2001 From: Giovanni La Mura <giovanni.lamura@inaf.it> Date: Thu, 12 Jun 2025 17:15:03 +0200 Subject: [PATCH] Define default refinement and dynamic order runtime behaviour in model maker --- src/scripts/model_maker.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scripts/model_maker.py b/src/scripts/model_maker.py index 27e4352..c25bb4c 100755 --- a/src/scripts/model_maker.py +++ b/src/scripts/model_maker.py @@ -328,6 +328,8 @@ def load_model(model_file): for j in range(expected_radii): sconf['rcf'][i][j] = float(model['particle_settings']['rad_frac'][i][j]) # Create the gconf dict + use_refinement = False + dyn_orders = True try: use_refinement = False if model['system_settings']['refinement'] == "0" else True except KeyError: @@ -335,7 +337,7 @@ def load_model(model_file): try: dyn_orders = False if model['radiation_settings']['dyn_orders'] == "0" else True except KeyError: - use_refinement = False + dyn_orders = True str_polar = model['radiation_settings']['polarization'] if (str_polar not in ["LINEAR", "CIRCULAR"]): print("ERROR: %s is not a recognized polarization state."%str_polar) -- GitLab