Skip to content

Commit

Permalink
Fix sympy test
Browse files Browse the repository at this point in the history
  • Loading branch information
terrorfisch committed Jul 13, 2018
1 parent 498f7e8 commit ff6de46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/utils/sympy_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def test_get_variables_indexed(self):
class EvaluationTests(TestCase):
def evaluate(self, expression: Union[sympy.Expr, np.ndarray], parameters):
if isinstance(expression, np.ndarray):
variables = set.union(map(set, map(get_variables, expression.flat)))
variables = set.union(*map(set, map(get_variables, expression.flat)))
else:
variables = get_variables(expression)
return evaluate_lambdified(expression, variables=list(variables), parameters=parameters, lambdified=None)[0]
Expand Down

0 comments on commit ff6de46

Please sign in to comment.