Skip to content

Commit

Permalink
fix (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgsdavies authored Nov 12, 2024
1 parent 7013e49 commit 3dad907
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ansys/motorcad/core/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@ def _to_json(self):
dict
Geometry region json representation
"""
if self._region_type == RegionType.adaptive:
lamination_type = self.lamination_type
else:
lamination_type = ""

region_dict = {
"name": self.name,
"material": self.material,
Expand All @@ -223,7 +228,7 @@ def _to_json(self):
"mesh_length": self.mesh_length,
"on_boundary": False if self._linked_region is None else True,
"singular": self._singular,
"lamination_type": self._lamination_type,
"lamination_type": lamination_type,
}

return region_dict
Expand Down

0 comments on commit 3dad907

Please sign in to comment.