accept order conditionally

This commit is contained in:
2023-03-14 17:51:17 +08:00
parent 45a406961a
commit a8d50e1f81
8 changed files with 56 additions and 14 deletions

View File

@@ -16,10 +16,7 @@ class ControllerDB:
db_name_prefix: str = None
reset_flag: int
lst_saved_s_id_3: list
lst_saved_s_id_1_2: list
# n_sample_1_2: int
lst_saved_s_id: list
def __init__(self, prefix, reset_flag=0):
with open('conf_experiment.yaml') as yaml_file:
@@ -51,8 +48,8 @@ class ControllerDB:
for product_code in row.index[row == 1].to_list():
dct = {code: [product_code]}
list_dct.append(dct)
break
break
# break
# break
# list_dct = [{'140': ['1.4.5.1']}]
for idx_exp, dct in enumerate(list_dct):
self.add_experiment_1(idx_exp, self.dct_parameter['n_max_trial'],