From b4e94432b010ff0c41cf452be376cce6ff3215ac Mon Sep 17 00:00:00 2001 From: Dugal Harris Date: Tue, 18 Jun 2024 09:17:32 +0200 Subject: [PATCH] change deprecated np.math.factorial() to std lib math.factorial() --- tests/test_ortho.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_ortho.py b/tests/test_ortho.py index f6c80ad..f648243 100644 --- a/tests/test_ortho.py +++ b/tests/test_ortho.py @@ -17,6 +17,7 @@ import logging import tracemalloc +from math import factorial from pathlib import Path from typing import Sequence @@ -44,7 +45,7 @@ def _validate_ortho_files( ): """Validate the similarity of overlapping areas in ortho files.""" cc_array = np.full((len(files),) * 2, fill_value=np.nan) - num_ovl_thresh = num_ovl_thresh or np.math.factorial(len(files) - 1) + num_ovl_thresh = num_ovl_thresh or factorial(len(files) - 1) for i1, file1 in enumerate(files): for i2, file2 in enumerate(files[i1 + 1 :]):