mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
correction of results
This commit is contained in:
1 parent
e711f0fb6f
commit
97f8a3ccde
2 files changed
+18
-5
No files matched your search
+10
-5
@@ -23,6 +23,7 @@ import logging
|
||||
import subprocess
|
||||
from queue import Queue
|
||||
from functools import reduce
|
||||
from time import process_time_ns
|
||||
|
||||
from numpy.core.multiarray import where
|
||||
from platformdirs import user_cache_dir
|
||||
@@ -1562,16 +1563,20 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||
if dialog.exec_():
|
||||
dir_path = dialog.selectedFiles()[0]
|
||||
dir_list = os.listdir(dir_path)
|
||||
print("dir path:", 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)
|
||||
solver_name = dir_path.split("/")[-2]
|
||||
print("dir solver name path:", solver_name)
|
||||
solver_results = next(filter(lambda x: x.name == solver_name, self.conf.solvers))
|
||||
print("solver type:", solver_results._type)
|
||||
print("dir path bis:", dir_path)
|
||||
solver_results_adists = solver_results.results(self._study, repertory=dir_path[:-10], qlog=None)#self._output)
|
||||
print("results adists", solver_results_adists)
|
||||
logger.info(f"Select results: {dir_path}")
|
||||
if len(bin_list) >= 2 and ("total_sediment.bin" in bin_list):
|
||||
self.open_solver_results_adists(
|
||||
self._last_solver,
|
||||
results=None,
|
||||
solver_results,
|
||||
results=solver_results_adists,
|
||||
)
|
||||
else:
|
||||
dlg = QDialog(self)
|
||||
|
||||
Reference in new issue
Block a user