mirror of https://gitlab.com/pamhyr/pamhyr2
BC, LC: Add default name.
parent
afb4c1b61e
commit
7719f5270d
|
|
@ -200,6 +200,9 @@ class BoundaryCondition(SQLSubModel):
|
|||
|
||||
@property
|
||||
def name(self):
|
||||
if self._name == "":
|
||||
return f"B{self.id + 1}"
|
||||
|
||||
return self._name
|
||||
|
||||
@name.setter
|
||||
|
|
|
|||
|
|
@ -200,6 +200,9 @@ class LateralContribution(SQLSubModel):
|
|||
|
||||
@property
|
||||
def name(self):
|
||||
if self._name == "":
|
||||
return f"L{self.id + 1}"
|
||||
|
||||
return self._name
|
||||
|
||||
@name.setter
|
||||
|
|
|
|||
Loading…
Reference in New Issue