corrected format string in order to get meaningful error message

This commit is contained in:
Christoph Kords 2014-01-29 12:54:18 +00:00
parent f82e5ec26e
commit de01c50d79
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ class Test():
max_loc=numpy.argmax(abs(refArrayNonZero[curArray.nonzero()]/curArray[curArray.nonzero()]-1.))
refArrayNonZero = refArrayNonZero[curArray.nonzero()]
curArray = curArray[curArray.nonzero()]
print(' ********\n * maximum relative error %f for %i and %i\n ********'
print(' ********\n * maximum relative error %f for %f and %f\n ********'
%(max_err, refArrayNonZero[max_loc],curArray[max_loc]))
return max_err
else: