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
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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)