[Rivet-svn] r2559 - trunk/bin

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Mon Jul 5 20:01:46 BST 2010


Author: holsch
Date: Mon Jul  5 20:01:49 2010
New Revision: 2559

Log:
Add --fast switch to avoid unneccessary loading of reference data files. This will only work, if the reference data files follow the Rivet nomenclature, so if you want to rescale to some arbitrary out.aida it won't work

Modified:
   trunk/bin/rivet-rescale

Modified: trunk/bin/rivet-rescale
==============================================================================
--- trunk/bin/rivet-rescale	Mon Jul  5 19:06:29 2010	(r2558)
+++ trunk/bin/rivet-rescale	Mon Jul  5 20:01:49 2010	(r2559)
@@ -53,11 +53,11 @@
 import os, re, logging
 from lighthisto import Histo
 
-#try:
-#    from IPython.Shell import IPShellEmbed
-#    ipshell = IPShellEmbed([])
-#except:
-#    logging.info("Ipython shell not available.")
+try:
+    from IPython.Shell import IPShellEmbed
+    ipshell = IPShellEmbed([])
+except:
+    logging.info("Ipython shell not available.")
 
 
 ## Try to load faster but non-standard cElementTree module
@@ -218,6 +218,7 @@
 
     ## Get MC histos
     histos = getHistosFromAIDA(args[0])
+    ipshell()
 
     # Read in reference histos to get reference areas to normalise to
     refdirs = []


More information about the Rivet-svn mailing list