Skip to content
Snippets Groups Projects
Commit adfbc966 authored by zrgt's avatar zrgt
Browse files

Remove name from ZuFaellendeBaeume

parent 15ed405a
Branches
No related tags found
No related merge requests found
......@@ -288,7 +288,6 @@ def create_zu_faellende_baeume():
zufaellendebaeume = models.ZuFaellendeBaeume(
id="https://www.company.com/submodels/zu_faellende_baeume",
name="Baueme zu faellen",
beschreibung="Baueme sollen demnaechst gefaellt werden",
umring=umring,
position=create_standort(),
......
......
......@@ -418,14 +418,12 @@ class Sortiment(SubmodelElementCollection):
class ZuFaellendeBaeume(Submodel):
def __init__(self,
id: Identifier,
name: str,
beschreibung: str,
umring: Umring,
position: Optional[Standort] = None,
baumliste: Optional[Iterable[StehenderBaum]] = None,
):
super().__init__(id_=id, **deepcopy(KWARGS[ZU_FAELLENDE_BAEUME]))
self.add_referable(Property(value=name, **deepcopy(KWARGS[NAME])))
self.add_referable(Property(value=beschreibung, **deepcopy(KWARGS[BESCHREIBUNG])))
self.add_referable(umring)
if position:
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment