mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
work on BHS
This commit is contained in:
1 parent
79b31e8d08
commit
f64ed131f9
1 file changed
+3
-3
@@ -81,13 +81,13 @@ class BasicHS(SQLSubModel):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def _get_ctor_from_type(cls, t):
|
def _get_ctor_from_type(cls, t):
|
||||||
from Model.HydraulicStructures.Basic.Types import (
|
from Model.HydraulicStructures.Basic.Types import (
|
||||||
NotDefined, Dummy,
|
BHS_types, NotDefined,
|
||||||
)
|
)
|
||||||
|
|
||||||
res = NotDefined
|
res = NotDefined
|
||||||
|
|
||||||
if t == "DU":
|
if t in BHS_types.keys():
|
||||||
res = Dummy
|
res = BHS_types[t]
|
||||||
|
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user