Skip to content
Snippets Groups Projects
Commit 77735cdd authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Define default refinement and dynamic order runtime behaviour in model maker

parent 07a18994
No related branches found
No related tags found
No related merge requests found
...@@ -328,6 +328,8 @@ def load_model(model_file): ...@@ -328,6 +328,8 @@ def load_model(model_file):
for j in range(expected_radii): for j in range(expected_radii):
sconf['rcf'][i][j] = float(model['particle_settings']['rad_frac'][i][j]) sconf['rcf'][i][j] = float(model['particle_settings']['rad_frac'][i][j])
# Create the gconf dict # Create the gconf dict
use_refinement = False
dyn_orders = True
try: try:
use_refinement = False if model['system_settings']['refinement'] == "0" else True use_refinement = False if model['system_settings']['refinement'] == "0" else True
except KeyError: except KeyError:
...@@ -335,7 +337,7 @@ def load_model(model_file): ...@@ -335,7 +337,7 @@ def load_model(model_file):
try: try:
dyn_orders = False if model['radiation_settings']['dyn_orders'] == "0" else True dyn_orders = False if model['radiation_settings']['dyn_orders'] == "0" else True
except KeyError: except KeyError:
use_refinement = False dyn_orders = True
str_polar = model['radiation_settings']['polarization'] str_polar = model['radiation_settings']['polarization']
if (str_polar not in ["LINEAR", "CIRCULAR"]): if (str_polar not in ["LINEAR", "CIRCULAR"]):
print("ERROR: %s is not a recognized polarization state."%str_polar) print("ERROR: %s is not a recognized polarization state."%str_polar)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment