Skip to content

Commit

Permalink
Merge pull request #207 from connorferster/patches/custom-symbol-subs…
Browse files Browse the repository at this point in the history
…titution

fix: custom symbols not numerically substituting
  • Loading branch information
connorferster authored Jun 12, 2024
2 parents 3587323 + 8ed8f41 commit 5987b01
Show file tree
Hide file tree
Showing 21 changed files with 777 additions and 245 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 5987b01

Please sign in to comment.