Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eko 0.12 compatibility #73

Merged
merged 31 commits into from
Feb 8, 2023
Merged

Eko 0.12 compatibility #73

merged 31 commits into from
Feb 8, 2023

Conversation

andreab1997
Copy link
Contributor

@andreab1997 andreab1997 commented Jan 13, 2023

Here we should fix what is needed to make pineko work with the new eko implementation (in particular with the develop version). @felixhekhorn @alecandido

  • restore EKO dep to semver

@alecandido
Copy link
Member

I would say just try to run, and you will find broken things. Hopefully not that many.

In particular, you can learn how to use the new methods from the EKO unit tests. In particular, an EKO is now opened with EKO.open(..., "r"/"w"/"a"), or one of the aliases EKO.read(...)/EKO.write(...)/EKO.edit(...).

@andreab1997
Copy link
Contributor Author

I would say just try to run, and you will find broken things. Hopefully not that many.

In particular, you can learn how to use the new methods from the EKO unit tests. In particular, an EKO is now opened with EKO.open(..., "r"/"w"/"a"), or one of the aliases EKO.read(...)/EKO.write(...)/EKO.edit(...).

Ok so as far as I understood I don't need anymore the legacy part: EKO will take care of loading the legacy ekos automatically if needed.

@felixhekhorn felixhekhorn changed the title Eko 0.11 compatibility Eko 0.12 compatibility Jan 13, 2023
@felixhekhorn felixhekhorn added the refactor Refactor code label Jan 13, 2023
@alecandido
Copy link
Member

Ok so as far as I understood I don't need anymore the legacy part: EKO will take care of loading the legacy ekos automatically if needed.

Not really, from that point of view nothing should have changed...

@alecandido
Copy link
Member

I temporarily moved the EKO dependency from the usual semver one to Git, such that unit tests are meaningful, please remember to restore the usual before merging.

@alecandido
Copy link
Member

Here there is a good point where to start from:
https://github.com/NNPDF/pineko/actions/runs/3911199573/jobs/6684311767#step:10:13

src/pineko/theory.py Outdated Show resolved Hide resolved
src/pineko/cli/convolute.py Outdated Show resolved Hide resolved
src/pineko/evolve.py Outdated Show resolved Hide resolved
src/pineko/evolve.py Outdated Show resolved Hide resolved
@andreab1997
Copy link
Contributor Author

Wait but I don't understand why that is blocking this PR

Because we do not want to depend on a Git branch, it is not reproducible: develop is not a fixed point in time, is a moving target. If you release this, and at a later stage we fix a bug in EKO, you will never be able to reproduce your results.

EKO is just missing tests, and without them is not fully reliable. If anyone is blocked because of that, it should consider contributing to testing EKO.

Nono I understand. But I don't want to realease this, just merge to main

@alecandido
Copy link
Member

Nono I understand. But I don't want to realease this, just merge to main

In principle that might be fine, however this means that we will not be able to make any other release.
So, if we are still using somewhere the older version of EKO, we should not merge immediately this. Moreover, this branch should not be used to produce immediately results, for as long as we are not confident that EKO is alright.
And we already know it is not, since @felixhekhorn already found a bug, so we should at least wait for NNPDF/eko#199

TL;DR: we need this branch, but we need more an EKO tested release -> this sets the priorities

@andreab1997
Copy link
Contributor Author

Nono I understand. But I don't want to realease this, just merge to main

In principle that might be fine, however this means that we will not be able to make any other release. So, if we are still using somewhere the older version of EKO, we should not merge immediately this. Moreover, this branch should not be used to produce immediately results, for as long as we are not confident that EKO is alright. And we already know it is not, since @felixhekhorn already found a bug, so we should at least wait for NNPDF/eko#199

TL;DR: we need this branch, but we need more an EKO tested release -> this sets the priorities

Ok I agree. Then, since I cannot compute stuff as long as eko is not tested, I will help in testing it :)

src/pineko/evolve.py Outdated Show resolved Hide resolved
@andreab1997
Copy link
Contributor Author

Ok now that the tests are succeding and the dependecy to eko has been restored, can we merge this?

@andreab1997
Copy link
Contributor Author

Ok nevermind, it seems that in eko something else is changed and the tests are failing again...

@alecandido
Copy link
Member

Ok nevermind, it seems that in eko something else is changed and the tests are failing again...

The problem is clearly with polarized

@alecandido
Copy link
Member

I would revert 72f6cf9: notice that tests were actually passing before, so they have been broken by it.

The problem was only in the benchmarks, and just concerning polarized.

@andreab1997
Copy link
Contributor Author

Details

No, note that the tests are still passing, the problem is the usual with codecov

@alecandido
Copy link
Member

No, note that the tests are still passing, the problem is the usual with codecov

Ok, then I change my statement: that commit simply didn't change the status. Benchmarks are still failing because of polarized

@andreab1997
Copy link
Contributor Author

andreab1997 commented Feb 7, 2023

No, note that the tests are still passing, the problem is the usual with codecov

Ok, then I change my statement: that commit simply didn't change the status. Benchmarks are still failing because of polarized

I know, I fixed it now :) (without making other commits, I am a wizard ;) )

src/pineko/evolve.py Outdated Show resolved Hide resolved
Co-authored-by: Felix Hekhorn <felixhekhorn@users.noreply.github.com>
@alecandido
Copy link
Member

alecandido commented Feb 7, 2023

There is one comment from @giacomomagni still open https://github.com/NNPDF/pineko/pull/73/files#r1073591854.

After that, I believe we can just merge.

@andreab1997
Copy link
Contributor Author

andreab1997 commented Feb 7, 2023

There is one comment from @giacomomagni still open https://github.com/NNPDF/pineko/pull/73/files#r1073591854.

After that, I believe we can just merge.

For that I don't know the answer. You guys know?

Copy link
Member

@alecandido alecandido left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only drawback of this PR is that it is bigger than I would have liked. But I'm fine with merging and keep going.

@andreab1997
Copy link
Contributor Author

@felixhekhorn @giacomomagni Do you agree that we can merge?

@andreab1997 andreab1997 merged commit 2a36ea1 into main Feb 8, 2023
@andreab1997 andreab1997 deleted the eko_11_comp branch February 8, 2023 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Refactor code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants