Skip to content

Commit

Permalink
fix: pyconsole
Browse files Browse the repository at this point in the history
  • Loading branch information
mkundu1 committed Oct 25, 2024
1 parent ee56536 commit 372025a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ansys/fluent/core/solver/flobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -1757,8 +1757,11 @@ def _fix_parameter_list_return(val):
for name, v in val.items():
value, units = v
if len(units) > 0 and isinstance(units[0], str):
# Symbols are not stripped in the command return in PyConsole.
# Following code will work in both PyConsole and PyFluent.
unit = units[0].lstrip("'")
unit_labels = _fix_parameter_list_return.scheme_eval(
f"(units/inquire-available-label-strings-for-quantity '{units[0]})"
f"(units/inquire-available-label-strings-for-quantity '{unit})"
)
unit_label = unit_labels[0] if len(unit_labels) > 0 else ""
else:
Expand Down

0 comments on commit 372025a

Please sign in to comment.