|
[Rivet-svn] r2585 - trunk/binblackhole at projects.hepforge.org blackhole at projects.hepforge.orgTue Jul 13 20:45:35 BST 2010
Author: buckley Date: Tue Jul 13 20:45:49 2010 New Revision: 2585 Log: Nicer logging message Modified: trunk/bin/rivet-rmgaps Modified: trunk/bin/rivet-rmgaps ============================================================================== --- trunk/bin/rivet-rmgaps Tue Jul 13 20:45:30 2010 (r2584) +++ trunk/bin/rivet-rmgaps Tue Jul 13 20:45:49 2010 (r2585) @@ -120,7 +120,8 @@ ## 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)) - logging.info("Stripping %d bins from %s" % (numrm, self.description['AidaPath'])) + plural = "s" if numrm != 1 else "" + logging.info("Stripping %d bin%s from %s" % (numrm, plural, self.description['AidaPath'])) newdata = [] for i in range(len(self.data)): if self.data[i]['LowEdge'] == refhist.data[i]['LowEdge'] and \ @@ -173,7 +174,7 @@ sys.exit(1) else: if len(args) < 2: - logging.error("Must specify at least the reference file and the MC input file") + logging.error("Must specify at least the reference file and the MC input file (or use the -R option)") sys.exit(1) if len(args) >= 2: REFFILES = [args[0]]
More information about the Rivet-svn mailing list |