[Rivet-svn] r2462 - trunk/bin

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Wed May 19 08:08:24 BST 2010


Author: fsiegert
Date: Wed May 19 10:25:54 2010
New Revision: 2462

Log:
rivet-mkhtml: Don't write out to many NONE's for analyses without Spires ID/description.

Modified:
   trunk/bin/rivet-mkhtml

Modified: trunk/bin/rivet-mkhtml
==============================================================================
--- trunk/bin/rivet-mkhtml	Wed May 19 10:24:35 2010	(r2461)
+++ trunk/bin/rivet-mkhtml	Wed May 19 10:25:54 2010	(r2462)
@@ -153,12 +153,13 @@
 for analysis in sorted(analyses, reverse=True):
     references=[]
     summary=analysis
-    description="Description not available."
+    description="NONE"
     spiresid=analysis[analysis.rfind('S')+1:len(analysis)]
     if rivetavailable:
         ana=rivet.AnalysisLoader.getAnalysis(analysis)
         if ana:
-            summary="%s (%s)" % (ana.summary(), analysis)
+            if ana.summary() is not "NONE":
+                summary="%s (%s)" % (ana.summary(), analysis)
             references=ana.references()
             description=ana.description()
             spiresid=ana.spiresId()
@@ -168,7 +169,8 @@
         index.write('<h3 style="clear:left; padding-top:2em;"><a name="%s">%s</a></h3>\n' % (analysis, summary) )
     else:
         index.write('<h3><a href="%s/index.html" style="text-decoration:none;">%s</a></h3>\n' %(analysis, summary))
-    index.write('<p><a href="http://durpdg.dur.ac.uk/cgi-bin/spiface/hep/www?irn+%s">Spires</a>' % spiresid)
+    if spiresid is not "NONE":
+        index.write('<p><a href="http://durpdg.dur.ac.uk/cgi-bin/spiface/hep/www?irn+%s">Spires</a>' % spiresid)
     for ref in references:
         index.write(' &#124; %s' % ref)
     index.write('</p>\n')


More information about the Rivet-svn mailing list