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

QED tests #1738

Merged
merged 41 commits into from
Jun 19, 2023
Merged

QED tests #1738

merged 41 commits into from
Jun 19, 2023

Conversation

niclaurenti
Copy link
Contributor

PR made to address issue #1735 , i.e. to create a low precision QED theory (similar to theory 399) that will be used to test the code and in particualr the photon module of validphys.

@RoyStegeman RoyStegeman linked an issue May 22, 2023 that may be closed by this pull request
@scarlehoff scarlehoff self-requested a review May 22, 2023 16:28
@scarlehoff
Copy link
Member

Let's sit on this until @andreab1997 updates evolven3fit_new to utilize eko 0.13

@scarlehoff
Copy link
Member

scarlehoff commented May 26, 2023

For the small eko for Theory 399 I've used evolven3fit_new -q 500 --q-points 10 produce_eko -i 0.00001 --x-grid-points 10 399 eko.tar

This produces an eko that weights only ~70 MB which I think it is ok for the tests. I'm going to open a PR with tests for evolven3fit_new, you can rebase on top of that branch and use the same test.

@RoyStegeman
Copy link
Member

@niclaurenti going forward, could you try rebasing a bit more often to avoid the merge commit?

@niclaurenti
Copy link
Contributor Author

@scarlehoff @RoyStegeman Since the call to fiatlux takes a lot should I make that if debug: true the photon is computed on a smaller number of points and reinterpolated?

@scarlehoff
Copy link
Member

Is the number of points not exposed in the runcard? One could want to run with debug: true while having the correct photon.

@niclaurenti
Copy link
Contributor Author

Is the number of points not exposed in the runcard? One could want to run with debug: true while having the correct photon.

No it is computed for every point in the XGRID. That's why it takes so much.
In the runcard there is

fiatlux:
  luxset: NNPDF40_nnlo_as_01180
  additional_errors: true # should be set to true only for the last iteration
  luxseed: 1234567890

Maybe I could add a key debug under fiatlux. Or we can just accept the slowness of generating the photon

@scarlehoff
Copy link
Member

scarlehoff commented Jun 14, 2023

I think a better solution is to expose the integration precision to the runcard.

"eps_base": 1e-5, # precision on final integration of double integral.

Then it becomes fast and you can test that things are working (we don't care about correctness in the test after all).

Edit: I just tried with eps_base: 1e-2 and the Basic_runcard_qed.yml ran quite fast.

@niclaurenti
Copy link
Contributor Author

@scarlehoff @RoyStegeman where does the test_evolven3fit.py is supposed to download the theories 399 and 398? Or they are downloaded somewhere else?

@scarlehoff
Copy link
Member

I haven't looked at the error, but the easiest solution is to add API.theoryid(theoryid=THEORYID_399) at some point at the beginning of the test so that vp downloads it.

@niclaurenti niclaurenti marked this pull request as ready for review June 15, 2023 15:22
@niclaurenti
Copy link
Contributor Author

Should I add some other tests?

@RoyStegeman
Copy link
Member

I think this is done now?

@niclaurenti
Copy link
Contributor Author

I think this is done now?

yes let's wait for the test to pass and then we can merge

Copy link
Member

@RoyStegeman RoyStegeman left a comment

Choose a reason for hiding this comment

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

Thanks - looks good to me and tests seem to pass.

@niclaurenti niclaurenti merged commit 7eb0c4e into master Jun 19, 2023
@niclaurenti niclaurenti deleted the qed-tests branch June 19, 2023 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a test theory for QED and reorganize tests
3 participants