add short dict and getter in HS

This commit is contained in:
Theophile Terraz committed 2023-12-11 15:29:02 +01:00
1 parent d6561ab44d
commit 352c0beb27
2 files changed
+8

No files matched your search

@@ -233,6 +233,9 @@ class HydraulicStructure(SQLSubModel):
def basic_structures(self):
return self._data.copy()
def basic_structure(self, index: int):
return self._data[index]
def add(self, index: int):
value = NotDefined(status=self._status)
self._data.insert(index, value)