[Rivet-svn] r2375 - trunk/bin

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Sat Apr 3 18:19:22 BST 2010


Author: fsiegert
Date: Sat Apr  3 18:19:21 2010
New Revision: 2375

Log:
fix multiple ref bug in rivet-mkhtml (which appears only with -- but not because of -- restructured compare-histos)

Modified:
   trunk/bin/rivet-mkhtml

Modified: trunk/bin/rivet-mkhtml
==============================================================================
--- trunk/bin/rivet-mkhtml	Sat Apr  3 17:46:37 2010	(r2374)
+++ trunk/bin/rivet-mkhtml	Sat Apr  3 18:19:21 2010	(r2375)
@@ -76,8 +76,10 @@
         analyses.add(analysis)
         for refpath in refpaths:
             if os.access(os.path.join(refpath, analysis+".aida"), os.R_OK):
-                reffiles.append("%s/%s.aida" % (refpath, analysis))
-                break
+                reffile = "%s/%s.aida" % (refpath, analysis)
+                if not reffile in reffiles:
+                    reffiles.append(reffile)
+                    break
 
 
 ## run compare-histos to get plain .dat files from .aida


More information about the Rivet-svn mailing list