diff --git a/validphys2/src/validphys/tests/photon/test_compute.py b/validphys2/src/validphys/tests/photon/test_compute.py index b7942cf468..b17547dcb0 100644 --- a/validphys2/src/validphys/tests/photon/test_compute.py +++ b/validphys2/src/validphys/tests/photon/test_compute.py @@ -8,9 +8,9 @@ from n3fit.io.writer import XGRID from validphys.api import API from validphys.core import PDF as PDFset -from validphys.photon import structure_functions as sf -from validphys.photon.compute import Alpha, Photon, FIATLUX_DEFAULT from validphys.loader import FallbackLoader +from validphys.photon import structure_functions as sf +from validphys.photon.compute import FIATLUX_DEFAULT, Alpha, Photon from ..conftest import PDF @@ -22,7 +22,7 @@ "luxset": PDFset(PDF), "additional_errors": PDFset('LUXqed17_plus_PDF4LHC15_nnlo_100'), "luxseed": 123456789, - "eps_base": 1e-2, # using low precision to speed up tests + "eps_base": 1e-2, # using low precision to speed up tests } diff --git a/validphys2/src/validphys/tests/photon/test_structurefunctions.py b/validphys2/src/validphys/tests/photon/test_structurefunctions.py index 52f68f0a22..571ae765f2 100644 --- a/validphys2/src/validphys/tests/photon/test_structurefunctions.py +++ b/validphys2/src/validphys/tests/photon/test_structurefunctions.py @@ -18,7 +18,7 @@ def xfxQ(self, x, Q): res[21] = 0.0 res[22] = 0.0 return res - + def xfxQ2(self, i, x, Q2): return self.xfxQ(x, np.sqrt(Q2))[i] @@ -61,7 +61,6 @@ def test_zero_pdfs(): np.testing.assert_allclose(fl.fxq(x, Q), 0.0) - def test_zero_grid(monkeypatch): "test that a zero grid gives a zero structure function" # patching pineappl.fk_table.FkTable to use ZeroFKTable @@ -73,7 +72,6 @@ def test_zero_grid(monkeypatch): np.testing.assert_allclose(structurefunc.fxq(x, Q), 0.0, rtol=1e-5) - def test_params(): "test initialization of parameters" pdfs = PDFset(PDF).load()