Skip to content

Commit 231d145

Browse files
committed
Merge branch 'next' of https://github.com/Geode-solutions/OpenGeodeWeb-Back into feat/is_active
2 parents e8e46f2 + 707872c commit 231d145

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/opengeodeweb_back/geode_objects/geode_brep.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ def items(self, id: og.uuid) -> list[og.ComponentID]:
9191
def is_active(self, id: og.uuid) -> bool:
9292
return self.brep.brep_component(id).is_active()
9393

94+
def component_name(self, id: og.uuid) -> str | None:
95+
return self.brep.brep_component(id).name()
96+
9497
def inspect(self) -> og_inspector.BRepInspectionResult:
9598
return og_inspector.inspect_brep(self.brep)
9699

src/opengeodeweb_back/geode_objects/geode_section.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ def internals(self, id: og.uuid) -> list[og.ComponentID]:
9090
def items(self, id: og.uuid) -> list[og.ComponentID]:
9191
return self.section.items(id)
9292

93-
def is_active(self, id: og.uuid) -> bool:
94-
return self.section.section_component(id).is_active()
93+
def component_name(self, id: og.uuid) -> str | None:
94+
return self.section.section_component(id).name()
9595

9696
def inspect(self) -> og_inspector.SectionInspectionResult:
9797
return og_inspector.inspect_section(self.section)

0 commit comments

Comments
 (0)