Skip to content

Commit

Permalink
Merge pull request scipy#4688 from lesteve/patch-2
Browse files Browse the repository at this point in the history
MAINT: spatial: improve is_distance_dm exception message
  • Loading branch information
rgommers committed Apr 5, 2015
2 parents ba01a06 + 905cfe7 commit 9e04e53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scipy/spatial/distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -1571,7 +1571,7 @@ def is_valid_dm(D, tol=0.0, throw=False, name="D", warning=False):
if not (D - D.T <= tol).all():
if name:
raise ValueError(('Distance matrix \'%s\' must be '
'symmetric within tolerance %d.')
'symmetric within tolerance %5.5f.')
% (name, tol))
else:
raise ValueError('Distance matrix must be symmetric within'
Expand Down

0 comments on commit 9e04e53

Please sign in to comment.