diff --git a/src/View/MainWindow.py b/src/View/MainWindow.py index 4e41ce46a36d1b81d1a374816dfd2c2fe433ca73..71f2fd1279daa973b00e98b144292f4b98eccbf5 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(