|
[Rivet-svn] r2651 - trunk/binblackhole at projects.hepforge.org blackhole at projects.hepforge.orgThu Aug 12 09:42:38 BST 2010
Author: fsiegert Date: Thu Aug 12 09:42:37 2010 New Revision: 2651 Log: Python 2.4 (SL5) compatibility for rivet-rmgaps Modified: trunk/bin/rivet-rmgaps Modified: trunk/bin/rivet-rmgaps ============================================================================== --- trunk/bin/rivet-rmgaps Wed Aug 11 17:54:49 2010 (r2650) +++ trunk/bin/rivet-rmgaps Thu Aug 12 09:42:37 2010 (r2651) @@ -120,7 +120,10 @@ ## Check for differences in the binning and remove superfluous MC bins: if len(refhist.data) != len(self.data): numrm = abs(len(self.data) - len(refhist.data)) - plural = "s" if numrm != 1 else "" + if numrm != 1: + plural = "s" + else: + plural = "" logging.info("Stripping %d bin%s from %s" % (numrm, plural, self.description['AidaPath'])) newdata = [] for i in range(len(self.data)):
More information about the Rivet-svn mailing list |