[Rivet-svn] rivet: Speedup for --list-analyses when pandoc is used

Rivet Mercurial rivet at projects.hepforge.org
Fri Nov 17 22:30:01 GMT 2017


details:   https://rivet.hepforge.org/hg/rivet/rev/7708d18bf030
branches:  
changeset: 6149:7708d18bf030
user:      David Grellscheid <david.grellscheid at durham.ac.uk>
date:      Fri Nov 17 22:21:11 2017 +0000
description:
Speedup for --list-analyses when pandoc is used

diffs (truncated from 145 to 50 lines):

--- a/analyses/pluginCDF/CDF_2001_S4751469.info	Fri Nov 17 19:22:40 2017 +0000
+++ b/analyses/pluginCDF/CDF_2001_S4751469.info	Fri Nov 17 22:21:11 2017 +0000
@@ -1,6 +1,6 @@
 Name: CDF_2001_S4751469
 Year: 2001
-Summary: Field & Stuart Run I underlying event analysis.
+Summary: Field \& Stuart Run I underlying event analysis.
 Experiment: CDF
 Collider: Tevatron Run 1
 SpiresID: 4751469
--- a/analyses/pluginCMS/CMS_2013_I1122847.info	Fri Nov 17 19:22:40 2017 +0000
+++ b/analyses/pluginCMS/CMS_2013_I1122847.info	Fri Nov 17 22:21:11 2017 +0000
@@ -1,6 +1,6 @@
 Name: CMS_2013_I1122847
 Year: 2013
-Summary: Forward-backward asymmetry A_FB in Drell-Yan lepton pairs at sqrt(s) = 7 TeV
+Summary: Forward-backward asymmetry A\_FB in Drell-Yan lepton pairs at sqrt(s) = 7 TeV
 Experiment: CMS
 Collider: LHC
 InspireID: 1122847
--- a/analyses/pluginCMS/CMS_2015_I1327224.info	Fri Nov 17 19:22:40 2017 +0000
+++ b/analyses/pluginCMS/CMS_2015_I1327224.info	Fri Nov 17 22:21:11 2017 +0000
@@ -1,6 +1,6 @@
 Name: CMS_2015_I1327224
 Year: 2015
-Summary:  Search for contact interactions & extra dimensions using dijet angular distributions in proton-proton collisions at $sqrt{s} = 8$ TeV
+Summary:  Search for contact interactions \& extra dimensions using dijet angular distributions in proton-proton collisions at $\sqrt{s} = 8$ TeV
 Experiment: CMS
 Collider: LHC
 InspireID: 1327224
--- a/bin/rivet	Fri Nov 17 19:22:40 2017 +0000
+++ b/bin/rivet	Fri Nov 17 22:21:11 2017 +0000
@@ -193,44 +193,40 @@
     if args:
         import re
         regexes = [re.compile(arg, re.I) for arg in args]
-    try:
-        # import tempfile, subprocess
-        # tf, tfpath = tempfile.mkstemp(prefix="rivet-list.")
-        for aname in all_analyses:
-            if not regexes:
-                toshow = True
-            else:
-                toshow = False
-                for regex in regexes:
-                    if regex.search(aname):
-                        toshow = True
-                        break
-            if toshow:
-                msg = aname


More information about the Rivet-svn mailing list