Skip to content

Commit

Permalink
Remove default qed=False from to_flavor_basis_tensor
Browse files Browse the repository at this point in the history
  • Loading branch information
niclaurenti committed Oct 12, 2023
1 parent 9803d22 commit 0c685dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/eko/member.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def operator_multiply(left, right, operation):
new_oms[new_key] += operation(l_op, r_op)
return new_oms

def to_flavor_basis_tensor(self, qed: bool = False):
def to_flavor_basis_tensor(self, qed: bool):
"""Convert the computations into an rank 4 tensor.
A sparse tensor defined with dot-notation (e.g. ``S.g``) is converted
Expand Down
6 changes: 3 additions & 3 deletions tests/eko/evolution_operator/test_physical.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def test_to_flavor_basis_tensor_ss(self):
),
1,
)
vt, _ = a.to_flavor_basis_tensor()
vt, _ = a.to_flavor_basis_tensor(False)
np.testing.assert_allclose(vt[6, :, 6, :], vt[6, :, 5, :])
np.testing.assert_allclose(vt[6, :, 6, :], vt[5, :, 6, :])
np.testing.assert_allclose(vt[6, :, 6, :], SS.value[:, :] / (2 * 3))
Expand All @@ -158,7 +158,7 @@ def test_to_flavor_basis_tensor_gg(self):
),
1,
)
vt, _ = a.to_flavor_basis_tensor()
vt, _ = a.to_flavor_basis_tensor(False)
np.testing.assert_allclose(vt[6, :, 6, :], 0)
np.testing.assert_allclose(vt[7, :, 7, :], gg.value[:, :])
np.testing.assert_allclose(vt[1, :, :, :], 0)
Expand Down Expand Up @@ -199,7 +199,7 @@ def test_to_flavor_basis_tensor_gg_qed(self):
),
1,
)
vt, _ = a.to_flavor_basis_tensor()
vt, _ = a.to_flavor_basis_tensor(False)
np.testing.assert_allclose(vt[6, :, 6, :], 0)
np.testing.assert_allclose(vt[7, :, 7, :], gg.value[:, :])
np.testing.assert_allclose(vt[1, :, :, :], 0)
Expand Down

0 comments on commit 0c685dd

Please sign in to comment.