some typos

Bug #1698694 reported by Sho Iwamoto on 2017-06-18
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

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 [](L894)


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

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

diff --git a/madgraph/interface/ b/madgraph/interface/
index 979ebac..0dcd49b 100755
--- a/madgraph/interface/
+++ b/madgraph/interface/
@@ -4772,7 +4772,8 @@ tar -czf split_$1.tar.gz split_$1
         self.check_plot(args)'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')

Sho Iwamoto (misho) on 2017-06-18
description: updated

Thanks a lot for this.
I have implemented those changes, it will be release in 2.5.6

Cheers and thanks,


Changed in mg5amcnlo:
status: New → Fix Committed
Changed in mg5amcnlo:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers