limit diff output to 3 decimal
authorPaul Brossier <piem@altern.org>
Tue, 31 May 2005 02:12:33 +0000 (02:12 +0000)
committerPaul Brossier <piem@altern.org>
Tue, 31 May 2005 02:12:33 +0000 (02:12 +0000)
limit diff output to 3 decimal

python/aubiocompare-onset

index e5fcf55be7a382d2442e45261bedf23d1a3112a2..1ae876998af954566a63a5d819b1c18356b5f69a 100755 (executable)
@@ -91,7 +91,7 @@ if delay:
 # compute errors types
 if mode == 'localisation':
        l = onset_diffs(ltru,lres,tol)
-       for i in l: print i
+       for i in l: print "%.3f" % i
 else:
        orig, missed, merged, expc, bad, doubled = onset_roc(ltru,lres,tol)