Skip to content

Commit

Permalink
Drop np.product
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhekhorn committed May 15, 2024
1 parent c0ce0f0 commit 3e8aa70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/eko/runner/test_operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@


def test_retrieve(ekoparts: EKO):
evhead, evop = next(iter(ekoparts.parts.cache.items()))
matchhead, matchop = next(iter(ekoparts.parts_matching.cache.items()))
evhead, _evop = next(iter(ekoparts.parts.cache.items()))
matchhead, _matchop = next(iter(ekoparts.parts_matching.cache.items()))

els = retrieve([evhead] * 5, ekoparts.parts, ekoparts.parts_matching)
assert len(els) == 5
Expand All @@ -27,7 +27,7 @@ def test_join(identity: Operator):
matrix product, but there not so many sensible rank-4 operators.
"""
linear_size = np.product(identity.operator.shape[:2])
linear_size = np.prod(identity.operator.shape[:2])
for n in range(1, 8, 3):
res = join([identity for _ in range(n)])
assert res.error is None
Expand Down

0 comments on commit 3e8aa70

Please sign in to comment.