|
[Rivet-svn] r3741 - trunk/binblackhole at projects.hepforge.org blackhole at projects.hepforge.orgFri Jun 8 12:05:55 BST 2012
Author: hoeth Date: Fri Jun 8 12:05:55 2012 New Revision: 3741 Log: fixes for not-in-scope variables in rivet-findid Modified: trunk/bin/rivet-findid Modified: trunk/bin/rivet-findid ============================================================================== --- trunk/bin/rivet-findid Fri Jun 1 21:44:22 2012 (r3740) +++ trunk/bin/rivet-findid Fri Jun 8 12:05:55 2012 (r3741) @@ -13,6 +13,8 @@ - SPIRES: [S]nnnnnnn - Inspire: [I]nnnnnn[n]""" +import re + try: import xml.etree.cElementTree as ET except ImportError: @@ -38,11 +40,8 @@ ## Set up some variables before the loop over args - import re arxiv_pattern = re.compile('^\d\d[01]\d\.\d{4}$|^(hep-(ex|ph|th)|nucl-ex)/\d\d[01]\d{4}$') spires_pattern = re.compile('^(S|I)?(\d{6}\d?)$') - import rivet - ALL_ANALYSES = rivet.AnalysisLoader.analysisNames() ## Loop over requested IDs @@ -141,6 +140,8 @@ def try_rivet(id): id = re.compile(id) + import rivet + ALL_ANALYSES = rivet.AnalysisLoader.analysisNames() return filter(id.search, ALL_ANALYSES)
More information about the Rivet-svn mailing list |