From 321c8af25582173f159e0f594ae9b9d5758be0bf Mon Sep 17 00:00:00 2001 From: R-Palazzo Date: Mon, 24 Jun 2024 10:30:54 +0100 Subject: [PATCH 1/2] pyproject + fix --- copulas/multivariate/tree.py | 2 +- pyproject.toml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/copulas/multivariate/tree.py b/copulas/multivariate/tree.py index 70ee7d4e..8cbcfb1e 100644 --- a/copulas/multivariate/tree.py +++ b/copulas/multivariate/tree.py @@ -98,7 +98,7 @@ def _sort_tau_by_y(self, y): """ # first column is the variable of interest tau_y = self.tau_matrix[:, y] - tau_y[y] = np.NaN + tau_y[y] = np.nan temp = np.empty([self.n_nodes, 3]) temp[:, 0] = np.arange(self.n_nodes) diff --git a/pyproject.toml b/pyproject.toml index 5070f2c9..d22c242e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,9 +21,9 @@ license = { text = 'BSL-1.1' } requires-python = '>=3.8,<3.13' readme = 'README.md' dependencies = [ - "numpy>=1.21.0,<2.0.0;python_version<'3.10'", - "numpy>=1.23.3,<2.0.0;python_version>='3.10' and python_version<'3.12'", - "numpy>=1.26.0,<2.0.0;python_version>='3.12'", + "numpy>=1.21.0;python_version<'3.10'", + "numpy>=1.23.3;python_version>='3.10' and python_version<'3.12'", + "numpy>=1.26.0;python_version>='3.12'", "pandas>=1.4.0;python_version<'3.11'", "pandas>=1.5.0;python_version>='3.11' and python_version<'3.12'", "pandas>=2.1.1;python_version>='3.12'", From 2d192e093703cb70eda458794a4d6a2cd7a13f74 Mon Sep 17 00:00:00 2001 From: R-Palazzo Date: Mon, 24 Jun 2024 11:42:25 +0100 Subject: [PATCH 2/2] fix tutorials --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index d22c242e..ca2af938 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,7 +50,7 @@ version = {attr = 'copulas.__version__'} [project.optional-dependencies] tutorials = [ 'markupsafe<=2.0.1', - "scikit-learn>=0.24,<1.2;python_version<'3.10'", + "scikit-learn>=0.24,<1.3.2;python_version<'3.10'", "scikit-learn>=0.24,<1.5;python_version>='3.10' and python_version<'3.12'", "scikit-learn>=1.3.1;python_version>='3.12'", 'jupyter>=1.0.0,<2',