@@ -1900,7 +1900,7 @@ def run_doe():
19001900 # structural
19011901 'p': [1, 2],
19021902 'q': [3, 4],
1903- # simple
1903+ # non-structural
19041904 'a': [5, 6],
19051905 'b': [7, 8],
19061906 }
@@ -2023,7 +2023,7 @@ def prepare(self) -> int:
20232023 param_structure [param_name ] = self ._parameters [param_name ]
20242024
20252025 param_structure_combinations = list (itertools .product (* param_structure .values ()))
2026- param_simple_combinations = list (itertools .product (* param_non_structure .values ()))
2026+ param_non_structural_combinations = list (itertools .product (* param_non_structure .values ()))
20272027
20282028 for idx_pc_structure , pc_structure in enumerate (param_structure_combinations ):
20292029
@@ -2051,15 +2051,15 @@ def prepare(self) -> int:
20512051
20522052 self ._mod .buildModel ()
20532053
2054- for idx_pc_simple , pc_simple in enumerate (param_simple_combinations ):
2055- sim_param_simple = {}
2056- for idx_simple , pk_simple in enumerate (param_non_structure .keys ()):
2057- sim_param_simple [ pk_simple ] = cast (Any , pc_simple [ idx_simple ])
2054+ for idx_non_structural , pk_non_structural in enumerate (param_non_structural_combinations ):
2055+ sim_param_non_structural = {}
2056+ for idx , pk in enumerate (param_non_structure .keys ()):
2057+ sim_param_non_structural [ pk ] = cast (Any , pk_non_structural [ idx ])
20582058
2059- resfilename = f"DOE_{ idx_pc_structure :09d} _{ idx_pc_simple :09d} .mat"
2059+ resfilename = f"DOE_{ idx_pc_structure :09d} _{ idx_non_structural :09d} .mat"
20602060 logger .info (f"use result file { repr (resfilename )} "
20612061 f"for structural parameters: { sim_param_structure } "
2062- f"and simple parameters: { sim_param_simple } " )
2062+ f"and non-structural parameters: { sim_param_non_structural } " )
20632063 resultfile = self ._resultpath / resfilename
20642064
20652065 df_data = (
@@ -2068,15 +2068,15 @@ def prepare(self) -> int:
20682068 }
20692069 | sim_param_structure
20702070 | {
2071- self .DICT_ID_NON_STRUCTURE : idx_pc_simple ,
2071+ self .DICT_ID_NON_STRUCTURE : idx_non_structural ,
20722072 }
2073- | sim_param_simple
2073+ | sim_param_non_structural
20742074 | {
20752075 self .DICT_RESULT_AVAILABLE : False ,
20762076 }
20772077 )
20782078
2079- self ._mod .setParameters (sim_param_simple )
2079+ self ._mod .setParameters (sim_param_non_structural )
20802080 mscmd = self ._mod .simulate_cmd (
20812081 result_file = resultfile ,
20822082 timeout = self ._timeout ,
0 commit comments