Skip to content

Commit

Permalink
change deprecated np.math.factorial() to std lib math.factorial()
Browse files Browse the repository at this point in the history
  • Loading branch information
dugalh committed Jun 18, 2024
1 parent 26abd61 commit b4e9443
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_ortho.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import logging
import tracemalloc
from math import factorial
from pathlib import Path
from typing import Sequence

Expand Down Expand Up @@ -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 :]):
Expand Down

0 comments on commit b4e9443

Please sign in to comment.