From de01c50d791415d8dbb5fcaf8f3e60e4822e16bf Mon Sep 17 00:00:00 2001 From: Christoph Kords Date: Wed, 29 Jan 2014 12:54:18 +0000 Subject: [PATCH] corrected format string in order to get meaningful error message --- lib/damask/test/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/damask/test/test.py b/lib/damask/test/test.py index 1b7a11313..0d7d2ef09 100644 --- a/lib/damask/test/test.py +++ b/lib/damask/test/test.py @@ -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: