Skip to content

Commit

Permalink
Add getter for vertex alignments (#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasturcani authored Jul 19, 2023
1 parent 3d8e12a commit a514b46
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/stk/_internal/topology_graphs/cage/cage.py
Original file line number Diff line number Diff line change
Expand Up @@ -1235,3 +1235,12 @@ def with_building_blocks(
building_block_map: dict[BuildingBlock, BuildingBlock],
) -> Cage:
return self.clone()._with_building_blocks(building_block_map)

def get_vertex_alignments(self) -> dict[int, int]:
"""
Get the vertex alignments.
Returns:
The vertex alignments.
"""
return dict(self._vertex_alignments)

0 comments on commit a514b46

Please sign in to comment.