From e711f0fb6f1517ffb264dcf7d8977b88971d62a5 Mon Sep 17 00:00:00 2001 From: Youcef AOUAD <youcef.aouad@inrae.fr> Date: Thu, 24 Oct 2024 10:40:13 +0200 Subject: [PATCH] results from main solver type --- src/View/MainWindow.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/View/MainWindow.py b/src/View/MainWindow.py index 4e41ce46..71f2fd12 100644 --- a/src/View/MainWindow.py +++ b/src/View/MainWindow.py @@ -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( -- GitLab