Skip to content

Commit

Permalink
fix: Do not filter out ' in string quantity type (#2915)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpohekar authored Jun 5, 2024
1 parent 324a532 commit f6ceaa9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/ansys/fluent/core/solver/flunits.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,7 @@ def get_si_unit_for_fluent_quantity(
# attribute only for dimensionless variables
if quantity is None:
return ""
try:
if quantity.startswith("'"):
quantity = quantity[1:]
except AttributeError:
# not a string
if not isinstance(quantity, str):
raise InvalidQuantityType(quantity)
try:
return (unit_table or _fl_unit_table)[quantity]
Expand Down

0 comments on commit f6ceaa9

Please sign in to comment.