problem with continuation lines in input files (probably in MadSpin code)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MadGraph5_aMC@NLO |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I've come across an unusual error message while running a simple MadGraph+MadSpin event generation (I believe the details are unimportant, but I can provide them if requested): MadSpin fails, complaining about an unknown particle "dl~dr~" (notice the missing space between what should actually be two SUSY particles).
The exact message is: "InvalidCmd : No particle dl~dr~ in model"
Studying the input files, I found the following continued (with \ at the end) line:
"define susystrong = go ul ur dl dr cl cr sl sr t1 t2 b1 b2 ul~ ur~ dl~\
dr~ cl~ cr~ sl~ sr~ t1~ t2~ b1~ b2~"
in the file PROC_mssm_
It appears that the space following the backslash-newline combination is lost while reading this file. The problem disappears if I manually replace the file by one that doesn't use continued lines instead, but this is very difficult to do when running on the grid (the file is automatically generated by a script outside of my control).
Is this easy to fix on your end?
Thanks and best regards!
Changed in mg5amcnlo: | |
status: | Fix Committed → Fix Released |
Dear Kilian,
Here is a simple fix:
=== modified file 'madgraph/ interface/ extended_ cmd.py' interface/ extended_ cmd.py 2016-01-23 00:40:59 +0000 interface/ extended_ cmd.py 2016-02-23 16:48:44 +0000
--- madgraph/
+++ madgraph/
@@ -579,7 +579,7 @@
# Check if the line is complete '\\'):
if line.endswith(
- self.save_line = line[:-1]
+ self.save_line = line[:-1] + ' '
return '' # do nothing
# Remove comment
Thanks a lot for your help,
Olivier
> On Feb 23, 2016, at 15:49, Kilian Rosbach <email address hidden> wrote: 0/Cards/ proc_card_ mg5.dat /bugs.launchpad .net/bugs/ 1548882 0/Cards/ proc_card_ mg5.dat
>
> Public bug reported:
>
> I've come across an unusual error message while running a simple
> MadGraph+MadSpin event generation (I believe the details are
> unimportant, but I can provide them if requested): MadSpin fails,
> complaining about an unknown particle "dl~dr~" (notice the missing space
> between what should actually be two SUSY particles).
>
> The exact message is: "InvalidCmd : No particle dl~dr~ in model"
>
> Studying the input files, I found the following continued (with \ at the end) line:
> "define susystrong = go ul ur dl dr cl cr sl sr t1 t2 b1 b2 ul~ ur~ dl~\
> dr~ cl~ cr~ sl~ sr~ t1~ t2~ b1~ b2~"
> in the file PROC_mssm_
>
> It appears that the space following the backslash-newline combination is
> lost while reading this file. The problem disappears if I manually
> replace the file by one that doesn't use continued lines instead, but
> this is very difficult to do when running on the grid (the file is
> automatically generated by a script outside of my control).
>
> Is this easy to fix on your end?
>
> Thanks and best regards!
>
> ** Affects: mg5amcnlo
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to
> MadGraph5_aMC@NLO.
> https:/
>
> Title:
> problem with continuation lines in input files (probably in MadSpin
> code)
>
> Status in MadGraph5_aMC@NLO:
> New
>
> Bug description:
> I've come across an unusual error message while running a simple
> MadGraph+MadSpin event generation (I believe the details are
> unimportant, but I can provide them if requested): MadSpin fails,
> complaining about an unknown particle "dl~dr~" (notice the missing
> space between what should actually be two SUSY particles).
>
> The exact message is: "InvalidCmd : No particle dl~dr~ in model"
>
> Studying the input files, I found the following continued (with \ at the end) line:
> "define susystrong = go ul ur dl dr cl cr sl sr t1 t2 b1 b2 ul~ ur~ dl~\
> dr~ cl~ cr~ sl~ sr~ t1~ t2~ b1~ b2~"
> in the file PROC_mssm_
>
> It appears that the space following the backslash-newline combination
> is lost while reading this file. The problem disappears if I manually
> replace the file by one that doesn't use continued lines instead, but
> this is very difficult to do when running on the grid (the file is
> automatically generated by a script outside of my control).
>
> Is this easy to fix on your end?
>
> Thanks and best regards!
>
> To manage n...