Skip to content

Commit b00aaf4

Browse files
Merge pull request #334 from IFCA-Advanced-Computing/dependabot/pip/numpy-gte-1.26.3-and-lt-2.1
Update numpy requirement from <1.27,>=1.26.3 to >=1.26.3,<2.1
2 parents acde823 + edd6f68 commit b00aaf4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

frouros/utils/stats.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import abc
44
import itertools
5+
import math
56
from functools import partial
67
from multiprocessing import Pool
78
from typing import Any, Callable, Optional, Tuple, Union
@@ -248,7 +249,7 @@ def permutation( # pylint: disable=too-many-arguments,too-many-locals
248249
X_num_samples, Y_num_samples = X.shape[0], Y.shape[0] # noqa: N806
249250
data = np.concatenate([X, Y])
250251

251-
max_num_permutations = np.math.factorial(data.shape[0])
252+
max_num_permutations = math.factorial(data.shape[0])
252253
if num_permutations >= max_num_permutations:
253254
logger.warning(
254255
"Number of permutations (%s) is greater or equal "

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ classifiers = [
3737
requires-python = ">=3.9,<3.13"
3838
dependencies = [
3939
"matplotlib>=3.8.2,<3.10",
40-
"numpy>=1.26.3,<1.27",
40+
"numpy>=1.26.3,<2.1",
4141
"requests>=2.31.0,<2.33",
4242
"scipy>=1.12.0,<1.14",
4343
"tqdm>=4.66.1,<5.0",

0 commit comments

Comments
 (0)