From 50c97e565170463c48b07e1712ba10f3424886ed Mon Sep 17 00:00:00 2001 From: Chris Bridge Date: Thu, 9 Nov 2023 11:20:58 -0500 Subject: [PATCH] Workaround use of math.prod in python 3.7 --- tests/test_utils.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_utils.py b/tests/test_utils.py index ebea82ac..e9bfdbae 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -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():