Skip to content

Commit 9352698

Browse files
committed
Fix typo in Equation.__call__ argument check.
1 parent df6e871 commit 9352698

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: diffpy/srfit/equation/equationmod.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def __call__(self, *args, **kw):
181181
"""
182182
# Process args
183183
for idx, val in enumerate(args):
184-
if idx > len(self.argdict):
184+
if idx >= len(self.argdict):
185185
raise ValueError("Too many arguments")
186186
arg = self.args[idx]
187187
arg.setValue(val)

0 commit comments

Comments
 (0)