mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
AdisTT: Stable version of files writer for adisTT solver
This commit is contained in:
1 parent
4a94c946d1
commit
bb2e83b6ce
8 files changed
+1895
-6
No files matched your search
+13
-5
@@ -91,6 +91,11 @@ from View.Results.CompareDialog import (
|
||||
CompareScenariosWindow
|
||||
)
|
||||
|
||||
from View.RunSolver.WindowAdisTT import (
|
||||
SelectSolverWindowAdisTT,
|
||||
SolverLogWindowAdisTT
|
||||
)
|
||||
|
||||
from View.RunSolver.WindowAdisTS import (
|
||||
SelectSolverWindowAdisTS,
|
||||
SolverLogWindowAdisTS
|
||||
@@ -172,7 +177,7 @@ define_model_action = [
|
||||
"action_menu_d90", "action_menu_dif", "action_menu_edit_geotiff",
|
||||
"action_menu_boundary_conditions_temperature",
|
||||
"action_menu_initial_conditions_temperature",
|
||||
"action_menu_weather_parameters",
|
||||
"action_menu_weather_parameters", "action_menu_run_adistt",
|
||||
]
|
||||
|
||||
action = (
|
||||
@@ -291,7 +296,10 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||
"action_menu_dif": self.open_dif,
|
||||
"action_menu_d90": self.open_d90,
|
||||
"action_menu_pollutants": self.open_pollutants,
|
||||
"action_menu_run_adists": self.select_run_solver_adists,
|
||||
"action_menu_run_adists":
|
||||
lambda: self.select_run_solver_adists(mode="adists"),
|
||||
"action_menu_run_adistt":
|
||||
lambda: self.select_run_solver_adists(mode="adistt"),
|
||||
"action_menu_output_rk": self.open_output_rk_adists,
|
||||
"action_menu_config": self.open_configure,
|
||||
"action_menu_new": self.open_new_study,
|
||||
@@ -1555,7 +1563,7 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||
if run.exec():
|
||||
self.run_solver(run.solver)
|
||||
|
||||
def select_run_solver_adists(self):
|
||||
def select_run_solver_adists(self, mode="adists"):
|
||||
if self._study is None:
|
||||
return
|
||||
|
||||
@@ -1571,9 +1579,9 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||
parent=self
|
||||
)
|
||||
if run.exec():
|
||||
self.run_solver_adists(run.solver, run.mage_rep)
|
||||
self.run_solver_adists(run.solver, run.mage_rep, mode=mode)
|
||||
|
||||
def run_solver_adists(self, solver, mage_rep):
|
||||
def run_solver_adists(self, solver, mage_rep, mode="adists"):
|
||||
if self._study is None:
|
||||
return
|
||||
|
||||
|
||||
Reference in new issue
Block a user