[Rivet-svn] rivet: Fix typo

Rivet Mercurial rivet at projects.hepforge.org
Sun Sep 25 00:45:02 BST 2016


details:   https://rivet.hepforge.org/hg/rivet/rev/e4b4316e70ad
branches:  release-2-5-x
changeset: 5515:e4b4316e70ad
user:      Andy Buckley <andy at insectnation.org>
date:      Sun Sep 25 00:32:50 2016 +0100
description:
Fix typo

diffs (30 lines):

--- a/bin/make-plots	Sat Sep 24 21:34:45 2016 +0100
+++ b/bin/make-plots	Sun Sep 25 00:32:50 2016 +0100
@@ -512,7 +512,7 @@
                 if showzero:
                     self.ymin = 0. if minymin > -1e-4 else 1.1*minymin
                 else:
-                    self.ymin = 1.1*min(foo) if minymin < -1e-4 else 0 if minymin < 1e-4 else 0.9*minymin
+                    self.ymin = 1.1*minymin if minymin < -1e-4 else 0 if minymin < 1e-4 else 0.9*minymin
                 if inputdata.description['LogY']:
                     ymins = [ymin for ymin in ymins if ymin > 0.0]
                     if not ymins:
@@ -797,7 +797,8 @@
             colordefs = {}
             for i in inputdata.description.setdefault('GofFrameColor', '0:green 3:yellow 6:red!70').strip().split():
                 foo = i.split(':')
-                if len(foo)!=2: continue
+                if len(foo) != 2:
+                    continue
                 colordefs[float(foo[0])] = foo[1]
             for i in sorted(colordefs.keys()):
                 if gof>=i:
@@ -832,7 +833,7 @@
         self.calculate_taylorcoordinates(inputdata)
 
     def calculate_taylorcoordinates(self,inputdata):
-        foo=inputdata.description['DrawOnly'].pop(inputdata.description['DrawOnly'].index(self.refdata))
+        foo = inputdata.description['DrawOnly'].pop(inputdata.description['DrawOnly'].index(self.refdata))
         inputdata.description['DrawOnly'].append(foo)
         for i in inputdata.description['DrawOnly']:
             print i


More information about the Rivet-svn mailing list