mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
WeatherParameters: Add first parameters view + model
This commit is contained in:
1 parent
2cbfaec0c2
commit
b2ca1c2ab7
10 files changed
+1484
-4
No files matched your search
@@ -114,6 +114,10 @@ from View.BoundaryConditionsTemperature.Window import (
|
||||
BoundaryConditionsTemperatureWindow
|
||||
)
|
||||
|
||||
from View.WeatherParameters.Window import (
|
||||
WeatherParametersWindow
|
||||
)
|
||||
|
||||
from Solver.Solvers import GenericSolver
|
||||
|
||||
from Model.Results.Results import Results
|
||||
@@ -282,6 +286,8 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||
self.open_initial_conditions_temperature,
|
||||
"action_menu_boundary_conditions_temperature":
|
||||
self.open_boundary_conditions_temperature,
|
||||
"action_menu_weather_parameters":
|
||||
self.open_weather_parameters,
|
||||
"action_menu_dif": self.open_dif,
|
||||
"action_menu_d90": self.open_d90,
|
||||
"action_menu_pollutants": self.open_pollutants,
|
||||
@@ -1037,6 +1043,21 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||
# SUB WINDOWS #
|
||||
###############
|
||||
|
||||
def open_weather_parameters(self):
|
||||
river = self._study.river
|
||||
|
||||
if self.sub_window_exists(
|
||||
WeatherParametersWindow,
|
||||
data=[self._study, None]
|
||||
):
|
||||
return
|
||||
|
||||
bound = WeatherParametersWindow(
|
||||
study=self._study,
|
||||
parent=self,
|
||||
)
|
||||
bound.show()
|
||||
|
||||
def open_boundary_conditions_temperature(self):
|
||||
river = self._study.river
|
||||
bclist = river.boundary_conditions_temperature.lst
|
||||
|
||||
Reference in new issue
Block a user