Skip to content

Commit 46c3546

Browse files
committed
.temporarily work with already released versions of PyTensor
1 parent a2c7f52 commit 46c3546

File tree

10 files changed

+12
-12
lines changed

10 files changed

+12
-12
lines changed

conda-envs/environment-alternative-backends.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies:
2222
- numpyro>=0.8.0
2323
- pandas>=0.24.0
2424
- pip
25-
- pytensor>=2.31.6,<2.32
25+
- pytensor>=2.31.5,<2.32
2626
- python-graphviz
2727
- networkx
2828
- rich>=13.7.1

conda-envs/environment-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies:
1212
- numpy>=1.25.0
1313
- pandas>=0.24.0
1414
- pip
15-
- pytensor>=2.31.6,<2.32
15+
- pytensor>=2.31.5,<2.32
1616
- python-graphviz
1717
- networkx
1818
- scipy>=1.4.1

conda-envs/environment-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies:
1111
- numpy>=1.25.0
1212
- pandas>=0.24.0
1313
- pip
14-
- pytensor>=2.31.6,<2.32
14+
- pytensor>=2.31.5,<2.32
1515
- python-graphviz
1616
- rich>=13.7.1
1717
- scipy>=1.4.1

conda-envs/environment-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dependencies:
1414
- pandas>=0.24.0
1515
- pip
1616
- polyagamma
17-
- pytensor>=2.31.6,<2.32
17+
- pytensor>=2.31.5,<2.32
1818
- python-graphviz
1919
- networkx
2020
- rich>=13.7.1

conda-envs/windows-environment-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies:
1212
- numpy>=1.25.0
1313
- pandas>=0.24.0
1414
- pip
15-
- pytensor>=2.31.6,<2.32
15+
- pytensor>=2.31.5,<2.32
1616
- python-graphviz
1717
- networkx
1818
- rich>=13.7.1

conda-envs/windows-environment-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies:
1515
- pandas>=0.24.0
1616
- pip
1717
- polyagamma
18-
- pytensor>=2.31.6,<2.32
18+
- pytensor>=2.31.5,<2.32
1919
- python-graphviz
2020
- networkx
2121
- rich>=13.7.1

pymc/dims/distributions/scalar.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ def _get_sigma_from_either_sigma_or_tau(*, sigma, tau):
4040

4141

4242
class Flat(DimDistribution):
43-
xrv_op = pxr.as_xrv(flat)
43+
xrv_op = pxr._as_xrv(flat)
4444

4545
@classmethod
4646
def dist(cls, **kwargs):
4747
return super().dist([], **kwargs)
4848

4949

5050
class HalfFlat(PositiveDimDistribution):
51-
xrv_op = pxr.as_xrv(halfflat, [], ())
51+
xrv_op = pxr._as_xrv(halfflat, [], ())
5252

5353
@classmethod
5454
def dist(cls, **kwargs):
@@ -102,7 +102,7 @@ def xrv_op(self, nu, sigma, core_dims=None, extra_dims=None, rng=None):
102102
nu = as_xtensor(nu)
103103
sigma = as_xtensor(sigma)
104104
core_rv = HalfStudentTRV.rv_op(nu=nu.values, sigma=sigma.values).owner.op
105-
xop = pxr.as_xrv(core_rv)
105+
xop = pxr._as_xrv(core_rv)
106106
return xop(nu, sigma, core_dims=core_dims, extra_dims=extra_dims, rng=rng)
107107

108108

pymc/dims/distributions/vector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def xrv_op(self, sigma, support_dims, core_dims, extra_dims=None, rng=None):
146146
support_dims = as_xtensor(support_dims, dims=("_",))
147147
support_shape = support_dims.values
148148
core_rv = ZeroSumNormalRV.rv_op(sigma=sigma.values, support_shape=support_shape).owner.op
149-
xop = pxr.as_xrv(
149+
xop = pxr._as_xrv(
150150
core_rv,
151151
core_inps_dims_map=[(), (0,)],
152152
core_out_dims_map=tuple(range(1, len(core_dims) + 1)),

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ numpydoc
1616
pandas>=0.24.0
1717
polyagamma
1818
pre-commit>=2.8.0
19-
pytensor>=2.31.6,<2.32
19+
pytensor>=2.31.5,<2.32
2020
pytest-cov>=2.5
2121
pytest>=3.0
2222
rich>=13.7.1

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cachetools>=4.2.1
33
cloudpickle
44
numpy>=1.25.0
55
pandas>=0.24.0
6-
pytensor>=2.31.6,<2.32
6+
pytensor>=2.31.5,<2.32
77
rich>=13.7.1
88
scipy>=1.4.1
99
threadpoolctl>=3.1.0,<4.0.0

0 commit comments

Comments
 (0)