Commit f64ed131 authored by Theophile Terraz's avatar Theophile Terraz
Browse files

work on BHS

Showing with 3 additions and 3 deletions
+3 -3
...@@ -81,13 +81,13 @@ class BasicHS(SQLSubModel): ...@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment