some typos

Bug #1698694 reported by Sho Iwamoto on 2017-06-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MadGraph5_aMC@NLO
Undecided
Unassigned

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 [http://bazaar.launchpad.net/~mg5core1/mg5amcnlo/2.5.6/view/head:/madgraph/interface/common_run_interface.py#L894](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')

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,

Olivier

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