incomplete PythonWriter class in file_writers

Asked by marco zaro

Hi,
for some student project, we need a python output of the matrix_element and of the helas routines (done via a plugin). We noticed that the PythonWriter class inside file_writers.py has basically no method (in 2.6.7 the only such a method is write_comments)
May I ask if it is possible to have the other functions implemented (I am mostly interested in write_line...)?

Thank you very much!

Ciao,

Marco

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier Mattelaer
Solved:
Last query:
Last reply:
Revision history for this message
Best Olivier Mattelaer (olivier-mattelaer) said :
#1

Did you check within this branch:
https://code.launchpad.net/~maddevelopers/mg5amcnlo/python_standalone <https://code.launchpad.net/~maddevelopers/mg5amcnlo/python_standalone>

If this is present there then I guess we would never done it

Cheers,

Olivier

> On 27 Feb 2020, at 17:37, marco zaro <email address hidden> wrote:
>
> New question #689030 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/689030
>
> Hi,
> for some student project, we need a python output of the matrix_element and of the helas routines (done via a plugin). We noticed that the PythonWriter class inside file_writers.py has basically no method (in 2.6.7 the only such a method is write_comments)
> May I ask if it is possible to have the other functions implemented (I am mostly interested in write_line...)?
>
> Thank you very much!
>
> Ciao,
>
> Marco
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
marco zaro (marco-zaro) said :
#2

Thanks Olivier,
we managed to get by with what was present in that branch.

cheers,

marco