File tree Expand file tree Collapse file tree 2 files changed +29
-2
lines changed
Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ def test_fktable(
117117
118118 def test_fktable_rotations (
119119 self ,
120+ pdf ,
120121 download_objects ,
121122 tmp_path ,
122123 fkname : str = "FKTABLE_CMSTTBARTOT8TEV-TOPDIFF8TEVTOT.pineappl.lz4" ,
@@ -137,7 +138,19 @@ def test_fktable_rotations(
137138 # check that the FK table can be loaded properly
138139 path = f"{ tmp_path } /rotated_fktable.pineappl.lz4"
139140 fk .write_lz4 (path )
140- _ = FkTable .read (path )
141+ fk_mod = FkTable .read (path )
142+
143+ # check that the convolutions are the same
144+ np .testing .assert_allclose (
145+ fk .convolve (
146+ pdg_convs = fk .convolutions ,
147+ xfxs = [pdf .unpolarized_pdf , pdf .unpolarized_pdf ],
148+ ),
149+ fk_mod .convolve (
150+ pdg_convs = fk_mod .convolutions ,
151+ xfxs = [pdf .unpolarized_pdf , pdf .unpolarized_pdf ],
152+ ),
153+ )
141154
142155 def test_unpolarized_convolution (
143156 self ,
Original file line number Diff line number Diff line change @@ -427,7 +427,21 @@ def test_grid_rotations(
427427 # check that the FK table can be loaded properly
428428 path = f"{ tmp_path } /grid_merged_factors.pineappl.lz4"
429429 g .write_lz4 (path )
430- _ = Grid .read (path )
430+ g_mod = Grid .read (path )
431+
432+ # check that the convolutions are the same
433+ np .testing .assert_allclose (
434+ g .convolve (
435+ pdg_convs = g .convolutions ,
436+ xfxs = [pdf .polarized_pdf ],
437+ alphas = pdf .alphasQ ,
438+ ),
439+ g_mod .convolve (
440+ pdg_convs = g_mod .convolutions ,
441+ xfxs = [pdf .polarized_pdf ],
442+ alphas = pdf .alphasQ ,
443+ ),
444+ )
431445
432446 def test_unpolarized_convolution (
433447 self ,
You can’t perform that action at this time.
0 commit comments