Small fixes.
authorCarl Hetherington <cth@carlh.net>
Fri, 11 Dec 2015 13:56:04 +0000 (13:56 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 11 Dec 2015 13:56:04 +0000 (13:56 +0000)
scripts/plotdiff

index debd7000d190984a9036bdcd028ed3e2f69694b7..7991b735d0e5e3d5b9a21b79485d7530945af4ca 100755 (executable)
@@ -11,14 +11,19 @@ with open(sys.argv[1], 'r') as f:
     for l in f:
         l = l.strip()
         s = l.split()
+
+        if l.find("out of range") != -1:
+            continue
+
         if l.startswith('Compared'):
             N = int(s[3])
             if mean is None:
                 mean = numpy.zeros(int(s[5]))
                 deviation = numpy.zeros(int(s[5]))
         elif l.startswith('mean'):
+            print s
             mean[N] = float(s[2])
-            deviation[N] = float(s[5])
+            deviation[N] = float(s[4])
 
 plt.plot(mean)
 plt.plot(deviation)