Skip to content

Commit

Permalink
Fix 2023.2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuelopez-ansys committed Jan 14, 2025
1 parent 6aeb343 commit 075dad8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ansys/aedt/core/modules/mesh_icepak.py
Original file line number Diff line number Diff line change
Expand Up @@ -933,12 +933,12 @@ def assignment(self):
for sr in sub_regions:
p1 = []
p2 = []
if "Part Names" in self._app.modeler[sr].history().props:
p1 = self._app.modeler[sr].history().props.get("Part Names", None)
if "Part Names" in self._app.modeler[sr].history().properties:
p1 = self._app.modeler[sr].history().properties.get("Part Names", None)
if not isinstance(p1, list):
p1 = [p1]
elif "Submodel Names" in self._app.modeler[sr].history().props:
p2 = self._app.modeler[sr].history().props.get("Submodel Names", None)
elif "Submodel Names" in self._app.modeler[sr].history().properties:
p2 = self._app.modeler[sr].history().properties.get("Submodel Names", None)
if not isinstance(p2, list):
p2 = [p2]
p1 += p2
Expand Down

0 comments on commit 075dad8

Please sign in to comment.