Merge lp:~maddevelopers/mg5amcnlo/fix_minor_bugs_1_3_23 into lp:~madteam/mg5amcnlo/trunk

Proposed by Johan Alwall
Status: Merged
Merged at revision: 178
Proposed branch: lp:~maddevelopers/mg5amcnlo/fix_minor_bugs_1_3_23
Merge into: lp:~madteam/mg5amcnlo/trunk
Diff against target: 67 lines (+11/-9)
5 files modified
Template/SubProcesses/reweight.f (+0/-6)
UpdateNotes.txt (+5/-0)
madgraph/VERSION (+2/-2)
madgraph/interface/launch_ext_program.py (+3/-0)
madgraph/iolibs/misc.py (+1/-1)
To merge this branch: bzr merge lp:~maddevelopers/mg5amcnlo/fix_minor_bugs_1_3_23
Reviewer Review Type Date Requested Status
Olivier Mattelaer Pending
Review via email: mp+79761@code.launchpad.net

Description of the change

- Fixed problem with user defined scales using setscales.f
- Fixed the error message in compile in misc.py
- Fix better error message if results.dat not found.

To post a comment you must log in.
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote :

Hi Johan,

Is this shouldn't return an error? rather than this message?

Otherwise, yes you can merge.

Cheers,

Olivier
On 18-oct.-11, at 21:59, Johan Alwall wrote:

> + if not os.path.exists(path):
> + logger.error('Generation failed (no results.dat file
> found)')
> + return

Revision history for this message
Johan Alwall (johan-alwall) wrote :

Hello Olivier,

This is a typical follow-up error, and the real error is usually given above. It's not an error that should give an MG5_debug file for sure, and with too much text it makes it difficult to spot the real error written several lines above. So I think this is much less confusing.

I'll do the merge.

Thanks,
Johan

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Template/SubProcesses/reweight.f'
2--- Template/SubProcesses/reweight.f 2011-10-05 03:10:17 +0000
3+++ Template/SubProcesses/reweight.f 2011-10-19 03:01:20 +0000
4@@ -758,12 +758,6 @@
5 external alphas, isjetvx, getissud, pdg2pdf, xran1, sudwgt
6
7 rewgt=1.0d0
8-
9- if((ickkw.gt.0.or..not.fixed_fac_scale.or..not.fixed_ren_scale)
10- $ .and..not.clustered)then
11- write(*,*)'Error: No clustering done when calling rewgt!'
12- stop
13- endif
14 clustered=.false.
15
16 if(ickkw.le.0) return
17
18=== modified file 'UpdateNotes.txt'
19--- UpdateNotes.txt 2011-10-12 16:09:26 +0000
20+++ UpdateNotes.txt 2011-10-19 03:01:20 +0000
21@@ -1,5 +1,10 @@
22 Update notes for MadGraph 5 (in reverse time order)
23
24+1.3.23 (19/10/11) JA: Allow user to set scales using setscales.f again
25+ (this was broken in v. 1.3.18).
26+ JA: Ensure that the error message is displayed if the
27+ "make" command is not installed on the system.
28+
29 1.3.22 (12/10/11) JA: Fixed another bug (also introduced in 1.3.18), which
30 could give the wrong ordering between the s-channel
31 propagators for certain multiprocess cases (this
32
33=== modified file 'madgraph/VERSION'
34--- madgraph/VERSION 2011-10-12 16:09:26 +0000
35+++ madgraph/VERSION 2011-10-19 03:01:20 +0000
36@@ -1,2 +1,2 @@
37-version = 1.3.22
38-date = 2011-10-12
39+version = 1.3.23
40+date = 2011-10-19
41
42=== modified file 'madgraph/interface/launch_ext_program.py'
43--- madgraph/interface/launch_ext_program.py 2011-07-08 09:54:01 +0000
44+++ madgraph/interface/launch_ext_program.py 2011-10-19 03:01:20 +0000
45@@ -289,6 +289,9 @@
46 # Display the cross-section to the screen
47 path = os.path.join(self.running_dir, 'SubProcesses', '%s_results.dat'
48 % self.name)
49+ if not os.path.exists(path):
50+ logger.error('Generation failed (no results.dat file found)')
51+ return
52 fsock = open(path)
53 line = fsock.readline()
54 cross, error = line.split()[0:2]
55
56=== modified file 'madgraph/iolibs/misc.py'
57--- madgraph/iolibs/misc.py 2011-07-08 09:54:01 +0000
58+++ madgraph/iolibs/misc.py 2011-10-19 03:01:20 +0000
59@@ -119,7 +119,7 @@
60 else:
61 error_text = "Impossible to compile %s directory\n" % cwd
62 error_text += "Trying to launch make command returns:\n"
63- error_text += " " + error + "\n"
64+ error_text += " " + str(error) + "\n"
65 error_text += "In general this means that your computer is not able to compile."
66 if sys.platform == "darwin":
67 error_text += "Note that MacOSX doesn\'t have gmake/gfortan install by default.\n"

Subscribers

People subscribed via source and target branches