From 61c5bb901176ddb82c6be37c492e98cfd8d8faac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Laurenti?= Date: Mon, 19 Jun 2023 10:14:13 +0200 Subject: [PATCH] Remove variable NNPDF40 --- .../src/validphys/tests/photon/test_structurefunctions.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/validphys2/src/validphys/tests/photon/test_structurefunctions.py b/validphys2/src/validphys/tests/photon/test_structurefunctions.py index 8798a0e30f..52f68f0a22 100644 --- a/validphys2/src/validphys/tests/photon/test_structurefunctions.py +++ b/validphys2/src/validphys/tests/photon/test_structurefunctions.py @@ -8,7 +8,6 @@ from ..conftest import PDF TEST_THEORY = API.theoryid(theoryid=398) -NNPDF40 = PDFset(PDF) class ZeroPdfs: @@ -67,7 +66,7 @@ def test_zero_grid(monkeypatch): "test that a zero grid gives a zero structure function" # patching pineappl.fk_table.FkTable to use ZeroFKTable monkeypatch.setattr(pineappl.fk_table.FkTable, "read", ZeroFKTable) - pdfs = NNPDF40.load() + pdfs = PDFset(PDF).load() structurefunc = sf.InterpStructureFunction("", pdfs.central_member) for x in np.geomspace(1e-4, 1.0, 10): for Q in np.geomspace(10, 1000000, 10): @@ -77,7 +76,7 @@ def test_zero_grid(monkeypatch): def test_params(): "test initialization of parameters" - pdfs = NNPDF40.load() + pdfs = PDFset(PDF).load() replica = 1 theory = TEST_THEORY.get_description() for channel in ["F2", "FL"]: @@ -93,7 +92,7 @@ def test_params(): def test_interpolation_grid(): """test that the values coming out of InterpStructureFunction match the grid ones""" - pdfs = NNPDF40.load() + pdfs = PDFset(PDF).load() for replica in [1, 2, 3]: for channel in ["F2", "FL"]: tmp = "fastkernel/fiatlux_dis_" + channel + ".pineappl.lz4"