|
[Rivet-svn] r3166 - trunk/binblackhole at projects.hepforge.org blackhole at projects.hepforge.orgTue Jun 28 15:17:45 BST 2011
Author: dgrell Date: Tue Jun 28 15:17:44 2011 New Revision: 3166 Log: another layer of workarounds for spaces in directory names Modified: trunk/bin/compare-histos Modified: trunk/bin/compare-histos ============================================================================== --- trunk/bin/compare-histos Mon Jun 27 13:47:07 2011 (r3165) +++ trunk/bin/compare-histos Tue Jun 28 15:17:44 2011 (r3166) @@ -20,7 +20,6 @@ print "rivet scripts require Python version >= 2.4.0... exiting" sys.exit(1) - def sanitiseString(s): #s = s.replace('_','\\_') #s = s.replace('^','\\^{}') @@ -408,7 +407,7 @@ drawonlystr = "" for hfile in activefiles: - drawonlystr += hfile + HISTOS[hfile][name].fullPath() + " " + drawonlystr += hfile.replace(' ','_') + HISTOS[hfile][name].fullPath().replace(' ','_') + " " paramdefaults = {"Title" : title, "XLabel" : xlabel, "YLabel" : ylabel, @@ -418,7 +417,7 @@ "RatioPlot" : "%d" % int(not opts.NORATIO), "XTwosidedTicks" : "1", "YTwosidedTicks" : "1", - "RatioPlotReference" : "%s%s" % (ref, HISTOS[ref][name].fullPath())} + "RatioPlotReference" : "%s%s" % (ref.replace(' ','_'), HISTOS[ref][name].fullPath().replace(' ','_'))} if opts.RATIO_DEVIATION: @@ -462,7 +461,7 @@ i = 0 logging.debug("Active files: %s" % activefiles) for hfile in activefiles: - histstr = '# BEGIN HISTOGRAM %s%s\n' % (hfile, HISTOS[hfile][name].fullPath()) + histstr = '# BEGIN HISTOGRAM %s%s\n' % (hfile.replace(' ','_'), HISTOS[hfile][name].fullPath().replace(' ','_')) if HISTOS[hfile][name].isdata: histstr += HISTSTYLES histstr += "ErrorBars=1\n"
More information about the Rivet-svn mailing list |