Skip to content

Commit cc14042

Browse files
authored
Update test_fk_table.py
1 parent 6194bfa commit cc14042

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

pineappl_py/tests/test_fk_table.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ def test_convolve(self, fake_grids, tmp_path):
6464
)
6565

6666
# Test writing/dumping the FK table into disk
67-
fk.write(f"{tmp_path}/toy_fktable.pineappl")
68-
fk.write_lz4(f"{tmp_path}/toy_fktable.pineappl.lz4")
67+
path = f"{tmp_path}/toy_fktable.pineappl"
68+
fk.write(path)
69+
fk.write_lz4(path)
6970

7071
def test_fktable(
7172
self,
@@ -134,8 +135,9 @@ def test_fktable_rotations(
134135
np.testing.assert_array_equal(fk_pdg_facs, 1)
135136

136137
# check that the FK table can be loaded properly
137-
fk.write_lz4(f"{tmp_path}/rotated_fktable.pineappl.lz4")
138-
_ = FkTable.read(f"{tmp_path}/rotated_fktable.pineappl.lz4")
138+
path = f"{tmp_path}/rotated_fktable.pineappl.lz4"
139+
fk.write_lz4(path)
140+
_ = FkTable.read(path)
139141

140142
def test_unpolarized_convolution(
141143
self,

0 commit comments

Comments
 (0)