Skip to content

Commit

Permalink
FIX: Select "user specified settings" setting more reliably (#5275)
Browse files Browse the repository at this point in the history
Co-authored-by: Sébastien Morais <146729917+SMoraisAnsys@users.noreply.github.com>
  • Loading branch information
lorenzovecchietti and SMoraisAnsys authored Oct 14, 2024
1 parent 7e793f9 commit 120f6e5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/ansys/aedt/core/modules/mesh_icepak.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,12 +509,9 @@ def parse_settings_as_args(self):
for k, v in self._instance_settings.items():
out.append(k + ":=")
if k in ["MaxElementSizeX", "MaxElementSizeY", "MaxElementSizeZ", "MinGapX", "MinGapY", "MinGapZ"]:
v = _dim_arg(v, getattr(self._mesh_class, "_model_units"))
v = _dim_arg(v, self._mesh_class._model_units)
out.append(v)
out.append(
"UserSpecifiedSettings:=",
)
out.append("MeshRegionResolution" in self.keys())
out += ["UserSpecifiedSettings:=", self._mesh_class.manual_settings]
return out

def parse_settings_as_dictionary(self):
Expand Down Expand Up @@ -1198,7 +1195,7 @@ def assign_mesh_level(self, mesh_order, name=None):
"""
level_order = {}
for obj in mesh_order:
if mesh_order[obj] not in level_order.keys():
if mesh_order[obj] not in level_order:
level_order[mesh_order[obj]] = []
level_order[mesh_order[obj]].append(obj)
list_meshops = []
Expand Down

0 comments on commit 120f6e5

Please sign in to comment.