Skip to content

Commit

Permalink
Run black
Browse files Browse the repository at this point in the history
  • Loading branch information
cschwan committed Aug 15, 2024
1 parent ba7aa7a commit 3bf331d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pineappl_py/tests/test_sugrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ def fake_importonlysubgrid(self):
Q2s = np.linspace(10, 20, 2)
mu2s = [tuple([q2, q2]) for q2 in Q2s]
array = np.random.rand(len(Q2s), len(x1s), len(x2s))
subgrid = pineappl.import_only_subgrid.ImportOnlySubgridV2(array, mu2s, x1s, x2s)
subgrid = pineappl.import_only_subgrid.ImportOnlySubgridV2(
array, mu2s, x1s, x2s
)
return subgrid, [x1s, x2s, mu2s, array]

def test_subgrid_methods(self):
Expand All @@ -67,7 +69,7 @@ def test_to_array3(self):
test_subgrid, infos = self.fake_importonlysubgrid()
_, _, _, array = (obj for obj in infos)
grid.set_subgrid(0, 0, 0, test_subgrid.into())
extr_subgrid = grid.subgrid(0,0,0)
extr_subgrid = grid.subgrid(0, 0, 0)
test_array = extr_subgrid.to_array3()
print(test_array)
print(array)
Expand Down

0 comments on commit 3bf331d

Please sign in to comment.