[Rivet-svn] r3523 - in trunk: . bin

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Mon Dec 12 11:20:34 GMT 2011


Author: fsiegert
Date: Mon Dec 12 11:20:33 2011
New Revision: 3523

Log:
Addition to r3521 to make rivet-mkhtml --ignore-missing really work.

Modified:
   trunk/ChangeLog
   trunk/bin/rivet-mkhtml

Modified: trunk/ChangeLog
==============================================================================
--- trunk/ChangeLog	Mon Dec 12 10:29:44 2011	(r3522)
+++ trunk/ChangeLog	Mon Dec 12 11:20:33 2011	(r3523)
@@ -1,3 +1,8 @@
+2011-12-12  Frank Siegert  <frank.siegert at cern.ch>
+
+	* Add --ignore-missing option to rivet-mkhtml to ignore non-existing
+	AIDA files.
+
 2011-12-06  Andy Buckley  <andy.buckley at cern.ch>
 
 	* Include underflow and overflow bins in the normalisation when

Modified: trunk/bin/rivet-mkhtml
==============================================================================
--- trunk/bin/rivet-mkhtml	Mon Dec 12 10:29:44 2011	(r3522)
+++ trunk/bin/rivet-mkhtml	Mon Dec 12 11:20:33 2011	(r3523)
@@ -165,6 +165,8 @@
 # TODO: This isn't very sensible... what's the intention? Provide --plotinfodir cmd line option?
 ch_cmd.append("--plotinfodir=../")
 for af in aidafiles:
+    if not os.access(os.path.abspath(af), os.R_OK):
+        continue
     ch_cmd.append("%s" % os.path.abspath(af))
 if opts.VERBOSE:
     ch_cmd.append("--verbose")


More information about the Rivet-svn mailing list