|
[Rivet-svn] r3647 - trunk/binblackhole at projects.hepforge.org blackhole at projects.hepforge.orgThu Mar 22 20:35:24 GMT 2012
Author: holsch Date: Thu Mar 22 20:35:24 2012 New Revision: 3647 Log: Minor improvement: Allow comments in observables file Modified: trunk/bin/rivet-rescale Modified: trunk/bin/rivet-rescale ============================================================================== --- trunk/bin/rivet-rescale Thu Mar 22 10:30:22 2012 (r3646) +++ trunk/bin/rivet-rescale Thu Mar 22 20:35:24 2012 (r3647) @@ -166,7 +166,8 @@ """ area = None # Try to read bin specs for chopping - splitline = line.strip().split() + # Remove possible comments at the end of the line + splitline = line.strip().rsplit("#")[0].split() try: path, low, high = splitline[0].split(":") except: @@ -321,7 +322,6 @@ else: scalefactor= 0.0 if scalefactor != 1.0 and scalefactor > 0.0: - print scalefactor oldarea = histos[name].getArea() newarea = histos[name].getArea() * scalefactor
More information about the Rivet-svn mailing list |