params["paths"]["use_signals"] = selected_signals.values()
else:
//default case
params["paths"]["use_signals"] = params["paths"]["use_signals_dict"].values()
print("Selected signals {}".format(params["paths"]["use_signals"]))
params["paths"]["shot_files_all"] = params["paths"]["shot_files"]+params["paths"]["shot_files_test"]
params["paths"]["all_machines"] = list(set([file.machine for file in params["paths"]["shot_files_all"]]))
return params
After Change
print("Signal {} is not fully defined for {} machine. Skipping...".format(sig,params["paths"]["data"].split("_")[0]))
params["paths"]["specific_signals"] = list(filter(lambda x: x in params["paths"]["use_signals_dict"].keys(), params["paths"]["specific_signals"]))
selected_signals = {k: params["paths"]["use_signals_dict"][k] for k in params["paths"]["specific_signals"]}
params["paths"]["use_signals"] = list(selected_signals.values())
else:
//default case
params["paths"]["use_signals"] = list(params["paths"]["use_signals_dict"].values())
print("Selected signals {}".format(params["paths"]["use_signals"]))
params["paths"]["shot_files_all"] = params["paths"]["shot_files"]+params["paths"]["shot_files_test"]
params["paths"]["all_machines"] = list(set([file.machine for file in params["paths"]["shot_files_all"]]))
return params