Skip to content

Commit af7eeb5

Browse files
Resolve deprecation warning for pytensor's Variable (#159)
* migrate pytensor.tensor.var to pytensor.tensor.variable * update req * drop 3.9 support * pin pymc and arviz * udpate python for docs build --------- Co-authored-by: aloctavodia <[email protected]>
1 parent 88ae1bb commit af7eeb5

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ["3.9", "3.10", "3.11"]
14+
python-version: ["3.10", "3.11"]
1515

1616
name: Set up Python ${{ matrix.python-version }}
1717
steps:

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version: 2
55
build:
66
os: ubuntu-20.04
77
tools:
8-
python: "3.9"
8+
python: "3.10"
99

1010
python:
1111
install:

pymc_bart/pgbart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from pymc.step_methods.compound import Competence
2424
from pytensor import config
2525
from pytensor import function as pytensor_function
26-
from pytensor.tensor.var import Variable
26+
from pytensor.tensor.variable import Variable
2727

2828
from pymc_bart.bart import BARTRV
2929
from pymc_bart.split_rules import ContinuousSplitRule

pymc_bart/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import numpy as np
99
import numpy.typing as npt
1010
import pytensor.tensor as pt
11-
from pytensor.tensor.var import Variable
11+
from pytensor.tensor.variable import Variable
1212
from scipy.interpolate import griddata
1313
from scipy.signal import savgol_filter
1414
from scipy.stats import norm, pearsonr

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
pymc>=5.0.0
2-
arviz
1+
pymc==5.13.1
2+
arviz==0.18.0
33
numba
44
matplotlib
55
numpy

0 commit comments

Comments
 (0)