What is the status of Python 3 migration?

Asked by Matthew Feickert on 2019-09-21

Hi. Myself and a group of people that I work with are curious about the state of Python 3 support for MadGraph5_aMC@NLO as it isn't clear from the site (to a newcomer like myself) what the status of development is.

From the Blueprint "path to python3" (https://blueprints.launchpad.net/mg5amcnlo/+spec/pythonversion) it is clear that the dev team has thought about this but that post was from 2018-03-01 and there doesn't seem to be any clear public discussion related to it. Searching the questions and answers page for "Python 3" also doesn't seem to return any discussion either.

There is a milestone for beta release v3.2 (https://launchpad.net/mg5amcnlo/+milestone/3.2.x) called "Python 3" but the current release of the v3 series is MG5aMC_3.0.1_beta.tar.gz at (https://launchpad.net/mg5amcnlo/2.0/2.6.x), so it seems that Python 3 support isn't in the near future.

Can the developers explain a bit about the Python 3 migration goals, challenges, and timelines? At the moment, our main interest in using MG5aMC in Python 3 is to be able to integrate into workflows and containers that utilize parallelism from Parsl (http://parsl-project.org/), which is Python 3 only. None of the people I work with are in formal positions to commit to making contributions to the Python 3 development (if it would even be desired from the dev team) but we are interested to know the general thoughts on the migration from the dev team.

Best,
Matthew

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
2019-09-21
Last reply:
2019-09-21

Hi,

I'm working on the conversion of the code when I have time (the nominal time is one afternoon per week dedicated to this project).

The current status is the you can now generate events at LO and NLO.
But we still have a lot of tests of our test suite that fails (either with python2 or python3).
And we have only run 2 of the 3 tests suite so far (unittest and acceptance tests are in progress and we have no clue of the status of the parralel test within this version).

In term of time line, I have no idea. In principle we are close but it is impossible for me to evaluate how much serious are the remaining failing tests. Some of them might need only 1 min of my time and some others up to 16h of works (which means 4 weeks at this speeds).
This range is based on the time that I have taken so for to move forward in this stage of tests running.

When all the tests will be passing with both python2 and python3. Then we will have
three phases
1) internal running of the code to discover to MANY bug expected in this version (both in python2 and python3)
2) a closed beta phase (including the MC group of CMS)
3) an open beta phase

In term of release number, the support of python2 will first be done for our current MG5aMC version 2 code (we will likely release two version of it called 2.7.0 and 2.7.0_py3)
and then we will start the same move for our version 3 (likely the same idean with 3.2.0 and 3.2.0_py3)

Cheers,

Olivier

> On 21 Sep 2019, at 08:13, Matthew Feickert <email address hidden> wrote:
>
> New question #684089 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/684089
>
> Hi. Myself and a group of people that I work with are curious about the state of Python 3 support for MadGraph5_aMC@NLO as it isn't clear from the site (to a newcomer like myself) what the status of development is.
>
>> From the Blueprint "path to python3" (https://blueprints.launchpad.net/mg5amcnlo/+spec/pythonversion) it is clear that the dev team has thought about this but that post was from 2018-03-01 and there doesn't seem to be any clear public discussion related to it. Searching the questions and answers page for "Python 3" also doesn't seem to return any discussion either.
>
> There is a milestone for beta release v3.2 (https://launchpad.net/mg5amcnlo/+milestone/3.2.x) called "Python 3" but the current release of the v3 series is MG5aMC_3.0.1_beta.tar.gz at (https://launchpad.net/mg5amcnlo/2.0/2.6.x), so it seems that Python 3 support isn't in the near future.
>
> Can the developers explain a bit about the Python 3 migration goals, challenges, and timelines? At the moment, our main interest in using MG5aMC in Python 3 is to be able to integrate into workflows and containers that utilize parallelism from Parsl (http://parsl-project.org/), which is Python 3 only. None of the people I work with are in formal positions to commit to making contributions to the Python 3 development (if it would even be desired from the dev team) but we are interested to know the general thoughts on the migration from the dev team.
>
> Best,
> Matthew
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Can you help with this problem?

Provide an answer of your own, or ask Matthew Feickert for more information if necessary.

To post a message you must log in.