Skip to content

Commit

Permalink
Changed tolerance to max
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Dec 5, 2011
1 parent 21324b9 commit 51970aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testsuite/python_modular/tester.py
Expand Up @@ -19,7 +19,7 @@ def compare(a, b, tolerance):

if type(a) == numpy.ndarray:
if tolerance:
return numpy.linalg.norm(a - b) < tolerance
return max(a - b) < tolerance
else:
return numpy.all(a == b)
elif type(a) in (tuple,list):
Expand Down

0 comments on commit 51970aa

Please sign in to comment.