[Rivet-svn] rivet: Allow "=" in plot titles. Thanks to Dmitry Kalinkin!

Rivet Mercurial rivet at projects.hepforge.org
Fri Sep 30 14:15:01 BST 2016


details:   https://rivet.hepforge.org/hg/rivet/rev/241444449a0d
branches:  release-2-5-x
changeset: 5544:241444449a0d
user:      David Grellscheid <david.grellscheid at durham.ac.uk>
date:      Fri Sep 30 14:02:41 2016 +0100
description:
Allow "=" in plot titles. Thanks to Dmitry Kalinkin!

diffs (11 lines):

--- a/bin/rivet-cmphistos	Fri Sep 30 13:56:54 2016 +0100
+++ b/bin/rivet-cmphistos	Fri Sep 30 14:02:41 2016 +0100
@@ -371,7 +371,7 @@
         #     plot[key] = val
         if plotoptions.has_key("PLOT"):
             for key_val in plotoptions["PLOT"]:
-                key, val = [s.strip() for s in key_val.split("=")]
+                key, val = [s.strip() for s in key_val.split("=",1)]
                 plot[key] = val
         if opts.LINEAR:
             plot['LogY'] = '0'


More information about the Rivet-svn mailing list