Skip to content

Commit

Permalink
Updated a direct call to Expr be index friendly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Roelfs committed Sep 11, 2018
1 parent f39bae7 commit aa22073
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions symfit/core/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ def call(self, *values, **named_values):
:return: The function evaluated at ``values``. The type depends entirely on the input.
Typically an array or a float but nothing is enforced.
"""
independent_vars, params = seperate_symbols(self)
independent_vars, params, indices = seperate_symbols(self, separate_indices=True)
# Convert to a pythonic function
func = sympy_to_py(self, independent_vars, params)
func = sympy_to_py(self, independent_vars, params, indices)

# Handle args and kwargs according to the allowed names.
parameters = [ # Note that these are inspect_sig.Parameter's, not symfit parameters!
Expand Down

0 comments on commit aa22073

Please sign in to comment.