Skip to content

Commit

Permalink
refactor: simplify exponent check for dimensional analysis add method
Browse files Browse the repository at this point in the history
Exponent won't be of float type
  • Loading branch information
mgreminger committed Jan 11, 2025
1 parent c9fef7f commit 8a8814e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions public/dimensional_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -782,8 +782,6 @@ def custom_get_dimensional_dependencies_for_name(self, dimension):
for key, exp in d.items():
if isinstance(exp, int):
exp = sympify(float(exp))
elif isinstance(exp, float):
exp = sympify(exp)

new_exp = exp.round(EXP_NUM_DIGITS)
if new_exp == sympify("0"):
Expand Down

0 comments on commit 8a8814e

Please sign in to comment.