results from main solver type

adists_release
Youcef AOUAD 2024-10-24 10:40:13 +02:00
parent 36fd8cdc8a
commit e711f0fb6f
1 changed files with 4 additions and 0 deletions

View File

@ -1563,6 +1563,10 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
dir_path = dialog.selectedFiles()[0]
dir_list = os.listdir(dir_path)
bin_list = list(filter(lambda s: "bin" in s, dir_list))
dir_sover_name = dir_path.split("/")[-2]
solver_results = next(filter(lambda x: x.name == dir_sover_name, self.conf.solvers))
print("dir solver name path:", dir_sover_name)
print("solver type:", solver_results._type)
logger.info(f"Select results: {dir_path}")
if len(bin_list) >= 2 and ("total_sediment.bin" in bin_list):
self.open_solver_results_adists(