Skip to content

Commit

Permalink
Workaround use of math.prod in python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
CPBridge committed Nov 9, 2023
1 parent b61aa58 commit 50c97e5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,12 @@ def test_compute_plane_position_slide_per_frame():

tiles_per_column = math.ceil(image.TotalPixelMatrixRows / image.Rows)
tiles_per_row = math.ceil(image.TotalPixelMatrixColumns / image.Columns)
assert len(plane_positions) == math.prod([
num_optical_paths,
num_focal_planes,
tiles_per_row,
tiles_per_column
])
assert len(plane_positions) == (
num_optical_paths
* num_focal_planes
* tiles_per_row
* tiles_per_column
)


def test_are_plane_positions_tiled_full():
Expand Down

0 comments on commit 50c97e5

Please sign in to comment.