Skip to content

Commit

Permalink
Call black and isort
Browse files Browse the repository at this point in the history
  • Loading branch information
niclaurenti committed Jun 19, 2023
1 parent d5a48f9 commit 1e237da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions validphys2/src/validphys/tests/photon/test_compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down Expand Up @@ -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
Expand All @@ -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()
Expand Down

0 comments on commit 1e237da

Please sign in to comment.