Skip to content

Commit

Permalink
fix: custom symbols not numerically substituting
Browse files Browse the repository at this point in the history
  • Loading branch information
connorferster committed Jun 11, 2024
1 parent a574571 commit 9bb7edf
Show file tree
Hide file tree
Showing 21 changed files with 810 additions and 246 deletions.
3 changes: 1 addition & 2 deletions handcalcs/handcalcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2089,7 +2089,6 @@ def swap_numeric_calcs(
numeric_expression = copy.copy(calculation)
functions_on_numeric_expressions = [
insert_parentheses,
swap_custom_symbols,
swap_math_funcs,
swap_chained_fracs,
swap_frac_divs,
Expand All @@ -2104,7 +2103,7 @@ def swap_numeric_calcs(
flatten_deque,
]
for function in functions_on_numeric_expressions:
if function is swap_values or function is swap_math_funcs:
if function in (swap_values, swap_math_funcs):
numeric_expression = function(
numeric_expression, calc_results, **config_options
)
Expand Down
Loading

0 comments on commit 9bb7edf

Please sign in to comment.