Skip to content

Remove need for _template.yaml#223

Open
evagroenendijk wants to merge 34 commits into
mainfrom
remove_template
Open

Remove need for _template.yaml#223
evagroenendijk wants to merge 34 commits into
mainfrom
remove_template

Conversation

@evagroenendijk
Copy link
Copy Markdown
Contributor

@evagroenendijk evagroenendijk commented May 23, 2025

Remove the need for _template.yaml as in issue #202

@evagroenendijk evagroenendijk self-assigned this May 23, 2025
@evagroenendijk evagroenendijk linked an issue May 23, 2025 that may be closed by this pull request
@felixhekhorn felixhekhorn added the enhancement New feature or request label May 26, 2025
@evagroenendijk
Copy link
Copy Markdown
Contributor Author

https://github.com/NNPDF/pineko/blob/f4097f29dec964e8b2c17818b502575ffa3444f0/tests/test_evolve.py#L55C1-L55C43

@scarlehoff Could I maybe just remove this test? I could make it check that the theory cards' Q0 is the same as the default one, but to me it seems a bit superfluous

@scarlehoff
Copy link
Copy Markdown
Member

Sure, shuffling around the _template and the operators might change which tests are needed.

Copy link
Copy Markdown
Contributor

@felixhekhorn felixhekhorn left a comment

Choose a reason for hiding this comment

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

some quick things I noticed last week

Comment thread src/pineko/template.py Outdated
Comment thread src/pineko/template.py Outdated
@scarlehoff scarlehoff self-requested a review May 19, 2026 12:34
@scarlehoff scarlehoff marked this pull request as ready for review May 19, 2026 12:35
Comment thread benchmarks/bench_regression.py Outdated
Comment thread src/pineko/opcard_template.py
Comment thread src/pineko/evolve.py Outdated
@evagroenendijk
Copy link
Copy Markdown
Contributor Author

@felixhekhorn The regression benchmark comparing convolved predictions failed, but the maximal relative difference is 0.03497747. Would you say it's close enough?

Comment thread src/pineko/evolve.py Outdated
Comment thread src/pineko/evolve.py Outdated
Comment thread src/pineko/evolve.py Outdated
Comment thread src/pineko/evolve.py Outdated
@scarlehoff
Copy link
Copy Markdown
Member

Let me know when I should try to test this again!

Btw, perhaps it would be good to rebase on top of master (or merge the changes from master)?

@evagroenendijk evagroenendijk requested a review from scarlehoff May 25, 2026 15:06
@evagroenendijk
Copy link
Copy Markdown
Contributor Author

@scarlehoff Yes thanks, I implemented the changes you suggested and made the necessary adjustment, let me know if you agree! Sorry, I took the day off on Friday so I just finished it today

Comment thread src/pineko/evolve.py Outdated
@scarlehoff
Copy link
Copy Markdown
Member

Thanks, this now works for me in a folder with no template and

It would be great if @kamillaurent could check explicitly that the fktables he computed didn't change. The best course of action is to select to datasets (one hadronic, one DIS, they can be quite small so that it goes faster), ideally from a theory with scale variations, and check that the results of the fktables ran with this branch are identical to the previous ones.

Comment thread src/pineko/cli/theory_.py Outdated
@scarlehoff
Copy link
Copy Markdown
Member

@kamillaurent did you have a change to test this?

@kamillaurent
Copy link
Copy Markdown

@scarlehoff no, because I saw there was movement on the PR. Also I am working on PR #247 and I thought it would be easier to test this after merging the previous one (so I apply the changes on top of it and I test if everything is consistent).

If for some reason PR #247 can't be merged in the short term, I will test this one without waiting for the other to be merged.

@scarlehoff
Copy link
Copy Markdown
Member

@evagroenendijk is this one final?

@kamillaurent I'm actually unsure what the best course of action is, because these two have conflicting changes. If you confirm that #247 is now final, I will merge that one and, if @evagroenendijk confirms this one is also final, we can merge master into this branch (I favour rebase but it would require too much manual work) and then you test that

(but it is important that you test with an exact commit that is available the repo)

@kamillaurent
Copy link
Copy Markdown

I confirm that #247 is final, if you have no other change request.

Copy link
Copy Markdown
Contributor

@felixhekhorn felixhekhorn left a comment

Choose a reason for hiding this comment

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

I dislike the fact that ipd=4 is now defined in several places, but for the sake of getting this PR done I will ignore it here for the moment ...

Comment thread src/pineko/evolve.py
Comment thread src/pineko/cli/fonll.py Outdated
Comment on lines -79 to -82
@click.option(
"--ipd", default=4, show_default=True, help="interpolation polynomial degree"
)
@click.option("--iil", default=True, show_default=True, help="interpolation is log")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why did you remove the options from the ekos command?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I removed them from the fonll command because Juan Cruz mentioned that these options are not there for fonll (that there is only the option for n_cores)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

right, I forgot the above comment ... well then I'm not sure I agree, but for the sake of merging this ASAP we can leave as is and see if this generates problems (which it won't, I think, we never change these settings)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think there was a bit of miscommunication there ^^U

I meant there was no theory card option in the fonll command.

@felixhekhorn if we never change these settings then I would remove them also from the operator card command in the not-fonll runs.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@felixhekhorn if we never change these settings then I would remove them also from the operator card command in the not-fonll runs.

I have never seen them being changed in real life ... for the sake of simplifying we can remove them also in the file-based CLI (either in this PR or in a separate one)

…1 in the operator card

Co-authored-by: Felix Hekhorn <felixhekhorn@users.noreply.github.com>
@evagroenendijk
Copy link
Copy Markdown
Contributor Author

@evagroenendijk is this one final?

@kamillaurent I'm actually unsure what the best course of action is, because these two have conflicting changes. If you confirm that #247 is now final, I will merge that one and, if @evagroenendijk confirms this one is also final, we can merge master into this branch (I favour rebase but it would require too much manual work) and then you test that

(but it is important that you test with an exact commit that is available the repo)

@scarlehoff up to me this is final and can be reviewed!

Copy link
Copy Markdown
Contributor

@felixhekhorn felixhekhorn left a comment

Choose a reason for hiding this comment

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

The _template.ci.yaml needs to be also removed from the server after merging

@scarlehoff scarlehoff dismissed their stale review June 3, 2026 11:24

Changes have been applied.

@scarlehoff
Copy link
Copy Markdown
Member

@kamillaurent please perform the discussed test and then we can merge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove operator_cards (and _template.yaml)

5 participants