Skip to content

Commit 6194bfa

Browse files
authored
Update test_grid.py
1 parent 590a218 commit 6194bfa

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

pineappl_py/tests/test_grid.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,9 @@ def test_write(self, fake_grids, tmp_path):
170170
)
171171

172172
# Test writing/dumping the FK table into disk
173-
g.write(f"{tmp_path}/toy_grid.pineappl")
174-
g.write_lz4(f"{tmp_path}/toy_grid.pineappl.lz4")
173+
path = f"{tmp_path}/toy_grid.pineappl"
174+
g.write(path)
175+
g.write_lz4(path)
175176

176177
def test_set_subgrid(self, fake_grids):
177178
# Test a proper DIS-case
@@ -424,8 +425,9 @@ def test_grid_rotations(
424425
np.testing.assert_array_equal(g_facs, 1)
425426

426427
# check that the FK table can be loaded properly
427-
g.write_lz4(f"{tmp_path}/grid_merged_factors.pineappl.lz4")
428-
_ = Grid.read(f"{tmp_path}/grid_merged_factors.pineappl.lz4")
428+
path = f"{tmp_path}/grid_merged_factors.pineappl.lz4"
429+
g.write_lz4(path)
430+
_ = Grid.read(path)
429431

430432
def test_unpolarized_convolution(
431433
self,

0 commit comments

Comments
 (0)