~ubuntu-branches/ubuntu/saucy/rivet/saucy-proposed

« back to all changes in this revision

Viewing changes to bin/rivet-rescale

  • Committer: Package Import Robot
  • Author(s): Lifeng Sun
  • Date: 2013-05-07 09:24:27 UTC
  • mfrom: (1.2.1) (2.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20130507092427-rpfijl4mn3y87ek7
Tags: 1.8.3-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
166
166
    """
167
167
    area = None
168
168
    # Try to read bin specs for chopping
169
 
    splitline = line.strip().split()
 
169
    # Remove possible comments at the end of the line
 
170
    splitline = line.strip().rsplit("#")[0].split()
170
171
    try:
171
172
        path, low, high = splitline[0].split(":")
172
173
    except:
321
322
            else:
322
323
                scalefactor= 0.0
323
324
            if scalefactor != 1.0 and scalefactor > 0.0:
324
 
                print scalefactor
325
325
                oldarea = histos[name].getArea()
326
326
                newarea = histos[name].getArea() * scalefactor
327
327