" run_01_log.txt " As to internal parameter assigned to be "NaN"
Dear MadGraph Team,
Hi, I had very lengthy parameter expressions in my "_UFO" file which was generated by FR. Then I generated several event(p p > x x~ say) through MG5, and opened " run_01_log.txt " file to check whether my internal parameters were correctly translated. Then all values were assigned to be (NaN, NaN), please note that these are complex. This was so strange to me, "NaN means None?" asked to myself. Well then I looked at the bottom line frame which read, "length: 22497 lines: 548". This really contradicted to what was given by, "(NaN , NaN)" shortly.
I had already debugged some of suspicious expressions in short pieces, for instance complex(0,1) etc, and found no problem there. So I had a growing anxious to the "length" problem in the parameter expressions.
In summary, I would like to know whether the length of expressions does really matter in running MG5, and the meaning of "(NaN,NaN)".
Thank you for helping me.
Sincerely
Jeong-han Kim
=======
Update as to the question: Specifically I found the problematic point
When I wirte input parameter in "parameter.py" file in my UFO file,
AAA = Parameter(name = 'AAA',
MG5 can't read "cmath.sqrt(-4)" when the argument is negative. I changed it into "cmath.sqrt(4)" then it worked!
If one has very lengthy expressions, then sometimes it's possible to have square-root of some negative value. I wonder, in this case, how to avoid this problem. I guess the best way is to go around not to use "cmath.sqrt" function. I would appreciated if you give me any suggestion.
Thanks a lot
Cheers !
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Valentin Hirschi
- Solved:
- Last query:
- Last reply: