Conversion of python2 compatible model to python3 compatible.

Asked by Writasree Maitra on 2020-05-27

The model I'm trying to import is python2 compatible; but I need python3 compatibility. I tried to use 'convert model' command; but it's not working.

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
2020-05-27
Last reply:
2020-05-27

Hi,

Ok, and what is the question?

Cheers,

Olivier

PS: The command is not expected to work for all model .

Writasree Maitra (writz) said : #2

Is there any other way I can convert a python2 compatible model to a python3 compatible model?

Hi,

I do not know any strong method to convert python2 code to python3 code.
you can try the "2to3" executable, or the one I often use "python-modernize"

Cheers,

Olivier

Can you help with this problem?

Provide an answer of your own, or ask Writasree Maitra for more information if necessary.

To post a message you must log in.