mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Boundary Conditions: interface for temperature's boundary conditions
This commit is contained in:
1 parent
95dd648b90
commit
2cbfaec0c2
16 files changed
+2095
-1
No files matched your search
+26
-1
@@ -110,6 +110,10 @@ from View.InitialConditionsTemperature.Window import (
|
||||
InitialConditionsTemperatureWindow
|
||||
)
|
||||
|
||||
from View.BoundaryConditionsTemperature.Window import (
|
||||
BoundaryConditionsTemperatureWindow
|
||||
)
|
||||
|
||||
from Solver.Solvers import GenericSolver
|
||||
|
||||
from Model.Results.Results import Results
|
||||
@@ -276,6 +280,8 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||
# Menu action
|
||||
"action_menu_initial_conditions_temperature":
|
||||
self.open_initial_conditions_temperature,
|
||||
"action_menu_boundary_conditions_temperature":
|
||||
self.open_boundary_conditions_temperature,
|
||||
"action_menu_dif": self.open_dif,
|
||||
"action_menu_d90": self.open_d90,
|
||||
"action_menu_pollutants": self.open_pollutants,
|
||||
@@ -1031,8 +1037,24 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||
# SUB WINDOWS #
|
||||
###############
|
||||
|
||||
def open_initial_conditions_temperature(self):
|
||||
def open_boundary_conditions_temperature(self):
|
||||
river = self._study.river
|
||||
bclist = river.boundary_conditions_temperature.lst
|
||||
|
||||
if self.sub_window_exists(
|
||||
BoundaryConditionsTemperatureWindow,
|
||||
data=[self._study, None, bclist]
|
||||
):
|
||||
return
|
||||
|
||||
bound = BoundaryConditionsTemperatureWindow(
|
||||
study=self._study,
|
||||
parent=self,
|
||||
data=bclist,
|
||||
)
|
||||
bound.show()
|
||||
|
||||
def open_initial_conditions_temperature(self):
|
||||
iclist = self._study.river.ic_temperature.lst
|
||||
if len(iclist) != 0:
|
||||
ic_default = iclist[0]
|
||||
@@ -2178,6 +2200,9 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||
logger.debug("No study open for sql debuging...")
|
||||
return
|
||||
|
||||
# todo : gérer le cas où le dossier a un espace dans le nom
|
||||
# (ne veut pas ouvrir sqlitebrowser)
|
||||
|
||||
file = self._study.filename
|
||||
_ = subprocess.Popen(
|
||||
f"sqlitebrowser {file}",
|
||||
|
||||
Reference in new issue
Block a user