Skip to content

Commit 35f17ad

Browse files
Test PyMC v5.0.0 compatibility
1 parent 4f13d07 commit 35f17ad

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

mcbackend/adapters/pymc.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@
77

88
import hagelkorn
99
import numpy
10-
from aesara.graph.basic import Constant
11-
from aesara.tensor.sharedvar import SharedVariable
10+
11+
try:
12+
from pytensor.graph.basic import Constant
13+
from pytensor.tensor.sharedvar import SharedVariable
14+
except ModuleNotFoundError:
15+
from aesara.graph.basic import Constant
16+
from aesara.tensor.sharedvar import SharedVariable
17+
1218
from pymc.backends.base import BaseTrace
1319
from pymc.model import Model
1420

requirements-dev.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
arviz
22
clickhouse-driver
33
flake8
4-
pymc==4.4.0
4+
pymc==5.0.0
55
pytest
66
pytest-cov
7-
# Temporary pin to fix Aesara import
8-
setuptools>=48.0.0
97
twine
108
wheel

0 commit comments

Comments
 (0)