Skip to content

Commit

Permalink
Fix tests?
Browse files Browse the repository at this point in the history
  • Loading branch information
terrorfisch committed Mar 15, 2018
1 parent 95965b7 commit b52933c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qctoolkit/utils/sympy.py
Expand Up @@ -159,9 +159,9 @@ def evaluate_compiled(expression: sympy.Expr,
'<string>', 'eval')

if mode == 'numeric' or mode is None:
result = eval(compiled, parameters, _numpy_environment)
result = eval(compiled, parameters.copy(), _numpy_environment)
elif mode == 'exact':
result = eval(compiled, parameters, _sympy_environment)
result = eval(compiled, parameters.copy(), _sympy_environment)
else:
raise ValueError("Unknown mode: '{}'".format(mode))

Expand Down

0 comments on commit b52933c

Please sign in to comment.