Comment 0 for bug 1698694

Revision history for this message
Sho Iwamoto (misho) wrote :

Hi MadTeam,

A minor bug (together with a tiny typo) are reported as follows.
 ask_edit_cards does not accept cards=[] because max([]) raises value error in http://bazaar.launchpad.net/~mg5core1/mg5amcnlo/2.5.6/view/head:/madgraph/interface/common_run_interface.py#L894

Best,
Sho

diff --git a/madgraph/interface/common_run_interface.py b/madgraph/interface/common_run_interface.py
index 29b72e5..a5d5861 100755
--- a/madgraph/interface/common_run_interface.py
+++ b/madgraph/interface/common_run_interface.py
@@ -110,11 +110,11 @@ class HelpToCmd(object):
         logger.info(" by condor cluster (since condor has it's own way to prevent it).")

     def help_plot(self):
- logger.info("syntax: help [RUN] [%s] [-f]" % '|'.join(self._plot_mode))
+ logger.info("syntax: plot [RUN] [%s] [-f]" % '|'.join(self._plot_mode))
         logger.info("-- create the plot for the RUN (current run by default)")
         logger.info(" at the different stage of the event generation")
         logger.info(" Note than more than one mode can be specified in the same command.")
- logger.info(" This require to have MadAnalysis and td require. By default")
+ logger.info(" This requires to have MadAnalysis and td. By default")
         logger.info(" if those programs are installed correctly, the creation")
         logger.info(" will be performed automaticaly during the event generation.")
         logger.info(" -f options: answer all question by default.")

diff --git a/madgraph/interface/madevent_interface.py b/madgraph/interface/madevent_interface.py
index 979ebac..0dcd49b 100755
--- a/madgraph/interface/madevent_interface.py
+++ b/madgraph/interface/madevent_interface.py
@@ -4772,7 +4772,8 @@ tar -czf split_$1.tar.gz split_$1
         self.check_plot(args)
         logger.info('plot for run %s' % self.run_name)
         if not self.force:
- self.ask_edit_cards([], args, plot=True)
+ self.ask_edit_cards(['plot_card.dat'], args, plot=True)

         if any([arg in ['all','parton'] for arg in args]):
             filename = pjoin(self.me_dir, 'Events', self.run_name, 'unweighted_events.lhe')