From 10cdee4617d8f19062999006d559e2c0a9da2b4b Mon Sep 17 00:00:00 2001 From: RyanAugust Date: Thu, 11 Apr 2024 06:16:02 -0700 Subject: [PATCH 1/5] migrate pytensor.tensor.var to pytensor.tensor.variable --- pymc_bart/pgbart.py | 2 +- pymc_bart/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pymc_bart/pgbart.py b/pymc_bart/pgbart.py index b4cf23b..e7b0762 100644 --- a/pymc_bart/pgbart.py +++ b/pymc_bart/pgbart.py @@ -23,7 +23,7 @@ from pymc.step_methods.compound import Competence from pytensor import config from pytensor import function as pytensor_function -from pytensor.tensor.var import Variable +from pytensor.tensor.variable import Variable from pymc_bart.bart import BARTRV from pymc_bart.split_rules import ContinuousSplitRule diff --git a/pymc_bart/utils.py b/pymc_bart/utils.py index 39e0620..ef61cd8 100644 --- a/pymc_bart/utils.py +++ b/pymc_bart/utils.py @@ -8,7 +8,7 @@ import numpy as np import numpy.typing as npt import pytensor.tensor as pt -from pytensor.tensor.var import Variable +from pytensor.tensor.variable import Variable from scipy.interpolate import griddata from scipy.signal import savgol_filter from scipy.stats import norm, pearsonr From 81360268fee90a63be1e603ae855643097ab7268 Mon Sep 17 00:00:00 2001 From: aloctavodia Date: Thu, 18 Apr 2024 10:13:56 -0300 Subject: [PATCH 2/5] update req --- requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 447fe26..3d7ee41 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ -pymc>=5.0.0 -arviz +pymc>=5.13.1 +arviz>=0.18.0 numba matplotlib numpy From dd7a4e6e1f6fcbf02b0ecc9cb9dfe79c576e90b1 Mon Sep 17 00:00:00 2001 From: aloctavodia Date: Thu, 18 Apr 2024 10:34:51 -0300 Subject: [PATCH 3/5] drop 3.9 support --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6c2c191..8817d27 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.10", "3.11"] + python-version: ["3.10", "3.11"] name: Set up Python ${{ matrix.python-version }} steps: From c8b3e5af839b6d825a9a9cdacbe3672ab80ee893 Mon Sep 17 00:00:00 2001 From: aloctavodia Date: Thu, 18 Apr 2024 11:25:49 -0300 Subject: [PATCH 4/5] pin pymc and arviz --- requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 3d7ee41..027c2b5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ -pymc>=5.13.1 -arviz>=0.18.0 +pymc==5.13.1 +arviz==0.18.0 numba matplotlib numpy From 6806993d63ede2eaf16584fdf1d0d832227b896b Mon Sep 17 00:00:00 2001 From: aloctavodia Date: Thu, 18 Apr 2024 11:28:46 -0300 Subject: [PATCH 5/5] udpate python for docs build --- .readthedocs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 04ad88b..6e5cef0 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -5,7 +5,7 @@ version: 2 build: os: ubuntu-20.04 tools: - python: "3.9" + python: "3.10" python: install: