Skip to content

Commit c967c99

Browse files
authored
Add support for numpy 2.0.0 (#414)
1 parent 8761f37 commit c967c99

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

copulas/multivariate/tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def _sort_tau_by_y(self, y):
9898
"""
9999
# first column is the variable of interest
100100
tau_y = self.tau_matrix[:, y]
101-
tau_y[y] = np.NaN
101+
tau_y[y] = np.nan
102102

103103
temp = np.empty([self.n_nodes, 3])
104104
temp[:, 0] = np.arange(self.n_nodes)

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ license = { text = 'BSL-1.1' }
2121
requires-python = '>=3.8,<3.13'
2222
readme = 'README.md'
2323
dependencies = [
24-
"numpy>=1.21.0,<2.0.0;python_version<'3.10'",
25-
"numpy>=1.23.3,<2.0.0;python_version>='3.10' and python_version<'3.12'",
26-
"numpy>=1.26.0,<2.0.0;python_version>='3.12'",
24+
"numpy>=1.21.0;python_version<'3.10'",
25+
"numpy>=1.23.3;python_version>='3.10' and python_version<'3.12'",
26+
"numpy>=1.26.0;python_version>='3.12'",
2727
"pandas>=1.4.0;python_version<'3.11'",
2828
"pandas>=1.5.0;python_version>='3.11' and python_version<'3.12'",
2929
"pandas>=2.1.1;python_version>='3.12'",
@@ -50,7 +50,7 @@ version = {attr = 'copulas.__version__'}
5050
[project.optional-dependencies]
5151
tutorials = [
5252
'markupsafe<=2.0.1',
53-
"scikit-learn>=0.24,<1.2;python_version<'3.10'",
53+
"scikit-learn>=0.24,<1.3.2;python_version<'3.10'",
5454
"scikit-learn>=0.24,<1.5;python_version>='3.10' and python_version<'3.12'",
5555
"scikit-learn>=1.3.1;python_version>='3.12'",
5656
'jupyter>=1.0.0,<2',

0 commit comments

Comments
 (0)