Skip to content

Commit bdb1a90

Browse files
committed
Bump PyTensor dependency pin
1 parent 51d6ef3 commit bdb1a90

10 files changed

+9
-13
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.30.2,<2.31
25+
- pytensor>=2.31.2,<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.30.2,<2.31
15+
- pytensor>=2.31.2,<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.30.2,<2.31
14+
- pytensor>=2.31.2,<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.30.2,<2.31
17+
- pytensor>=2.31.2,<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.30.2,<2.31
15+
- pytensor>=2.31.2,<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.30.2,<2.31
18+
- pytensor>=2.31.2,<2.32
1919
- python-graphviz
2020
- networkx
2121
- rich>=13.7.1

pymc/sampling/mcmc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ def joined_blas_limiter():
841841
initvals=initvals,
842842
compile_kwargs=compile_kwargs,
843843
**kwargs,
844-
) # type: ignore[incompatible-type]
844+
) # type: ignore[incompatible-type,arg-type]
845845
else:
846846
# Get initial points
847847
ipfns = make_initial_point_fns_per_chain(

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.30.2,<2.31
19+
pytensor>=2.31.2,<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.30.2,<2.31
6+
pytensor>=2.31.2,<2.32
77
rich>=13.7.1
88
scipy>=1.4.1
99
threadpoolctl>=3.1.0,<4.0.0

tests/sampling/test_mcmc.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,6 @@ def test_partial_trace_with_trace_unsupported():
526526
pm.sample(trace=[a])
527527

528528

529-
@pytest.mark.xfail(condition=(pytensor.config.floatX == "float32"), reason="Fails on float32")
530529
class TestNamedSampling:
531530
def test_shared_named(self):
532531
G_var = shared(value=np.atleast_2d(1.0), shape=(1, None), name="G")
@@ -537,7 +536,6 @@ def test_shared_named(self):
537536
mu=np.atleast_2d(0),
538537
tau=np.atleast_2d(1e20),
539538
size=(1, 1),
540-
initval=np.atleast_2d(0),
541539
)
542540
theta = pm.Normal(
543541
"theta", mu=pt.dot(G_var, theta0), tau=np.atleast_2d(1e20), size=(1, 1)
@@ -553,7 +551,6 @@ def test_shared_unnamed(self):
553551
mu=np.atleast_2d(0),
554552
tau=np.atleast_2d(1e20),
555553
size=(1, 1),
556-
initval=np.atleast_2d(0),
557554
)
558555
theta = pm.Normal(
559556
"theta", mu=pt.dot(G_var, theta0), tau=np.atleast_2d(1e20), size=(1, 1)
@@ -569,7 +566,6 @@ def test_constant_named(self):
569566
mu=np.atleast_2d(0),
570567
tau=np.atleast_2d(1e20),
571568
size=(1, 1),
572-
initval=np.atleast_2d(0),
573569
)
574570
theta = pm.Normal(
575571
"theta", mu=pt.dot(G_var, theta0), tau=np.atleast_2d(1e20), size=(1, 1)

0 commit comments

Comments
 (0)