mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Model, LC: Add SQL export for lateral contribution.
This commit is contained in:
1 parent
36f792d432
commit
a4acbdce16
4 files changed
+193
-12
No files matched your search
+6
-1
@@ -172,7 +172,7 @@ class River(Graph, SQLSubModel):
|
||||
RiverNode,
|
||||
RiverReach,
|
||||
BoundaryConditionList,
|
||||
# LateralContributionList,
|
||||
LateralContributionList,
|
||||
# InitialConditionsDict,
|
||||
# StricklersList,
|
||||
# SolverParametersList,
|
||||
@@ -223,12 +223,17 @@ class River(Graph, SQLSubModel):
|
||||
execute,
|
||||
data
|
||||
)
|
||||
new._lateral_contribution = LateralContributionList._sql_load(
|
||||
execute,
|
||||
data
|
||||
)
|
||||
|
||||
return new
|
||||
|
||||
def _sql_save(self, execute, data = None):
|
||||
objs = (self._nodes + self._edges)
|
||||
objs.append(self._boundary_condition)
|
||||
objs.append(self._lateral_contribution)
|
||||
|
||||
self._save_submodel(execute, objs, data)
|
||||
return True
|
||||
|
||||
Reference in new issue
Block a user