Skip to content

Commit 4fb7342

Browse files
committed
fix(geode_objects): fix Vease-Modeling-Back tests with missing classes
1 parent c098589 commit 4fb7342

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/opengeodeweb_back/geode_objects/geode_cross_section.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,6 @@ def save_light_viewable(self, filename_without_extension: str) -> str:
7373
return viewables.save_light_viewable_cross_section(
7474
self.cross_section, filename_without_extension
7575
)
76+
77+
def component_name(self, id: og.uuid) -> str | None:
78+
return self.cross_section.cross_section_component(id).name()

src/opengeodeweb_back/geode_objects/geode_structural_model.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,6 @@ def save_light_viewable(self, filename_without_extension: str) -> str:
7575
return viewables.save_light_viewable_structural_model(
7676
self.structural_model, filename_without_extension
7777
)
78+
79+
def component_name(self, id: og.uuid) -> str | None:
80+
return self.structural_model.structural_model_component(id).name()

0 commit comments

Comments
 (0)