mirror of https://gitlab.com/pamhyr/pamhyr2
work on BHS
parent
79b31e8d08
commit
f64ed131f9
|
|
@ -81,13 +81,13 @@ class BasicHS(SQLSubModel):
|
|||
@classmethod
|
||||
def _get_ctor_from_type(cls, t):
|
||||
from Model.HydraulicStructures.Basic.Types import (
|
||||
NotDefined, Dummy,
|
||||
BHS_types, NotDefined,
|
||||
)
|
||||
|
||||
res = NotDefined
|
||||
|
||||
if t == "DU":
|
||||
res = Dummy
|
||||
if t in BHS_types.keys():
|
||||
res = BHS_types[t]
|
||||
|
||||
return res
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue