Skip to content

Commit e52b2f7

Browse files
committed
Update Aesara dependency and add regression test for #5090
1 parent 8a27ff4 commit e52b2f7

11 files changed

+20
-10
lines changed

conda-envs/environment-dev-py37.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ channels:
55
- defaults
66
dependencies:
77
- aeppl>=0.0.13
8-
- aesara>=2.2.2
8+
- aesara>=2.2.6
99
- arviz>=0.11.4
1010
- cachetools>=4.2.1
1111
- cloudpickle

conda-envs/environment-dev-py38.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ channels:
55
- defaults
66
dependencies:
77
- aeppl>=0.0.13
8-
- aesara>=2.2.2
8+
- aesara>=2.2.6
99
- arviz>=0.11.4
1010
- cachetools>=4.2.1
1111
- cloudpickle

conda-envs/environment-dev-py39.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ channels:
55
- defaults
66
dependencies:
77
- aeppl>=0.0.13
8-
- aesara>=2.2.2
8+
- aesara>=2.2.6
99
- arviz>=0.11.4
1010
- cachetools>=4.2.1
1111
- cloudpickle

conda-envs/environment-test-py37.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ channels:
55
- defaults
66
dependencies:
77
- aeppl>=0.0.13
8-
- aesara>=2.2.2
8+
- aesara>=2.2.6
99
- arviz>=0.11.4
1010
- cachetools>=4.2.1
1111
- cloudpickle

conda-envs/environment-test-py38.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ channels:
55
- defaults
66
dependencies:
77
- aeppl>=0.0.13
8-
- aesara>=2.2.2
8+
- aesara>=2.2.6
99
- arviz>=0.11.4
1010
- cachetools>=4.2.1
1111
- cloudpickle

conda-envs/environment-test-py39.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ channels:
55
- defaults
66
dependencies:
77
- aeppl>=0.0.13
8-
- aesara>=2.2.2
8+
- aesara>=2.2.6
99
- arviz>=0.11.4
1010
- cachetools
1111
- cloudpickle

conda-envs/windows-environment-dev-py38.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ channels:
55
dependencies:
66
# base dependencies (see install guide for Windows)
77
- aeppl>=0.0.13
8-
- aesara>=2.2.2
8+
- aesara>=2.2.6
99
- arviz>=0.11.4
1010
- cachetools>=4.2.1
1111
- cloudpickle

conda-envs/windows-environment-test-py38.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ channels:
55
dependencies:
66
# base dependencies (see install guide for Windows)
77
- aeppl>=0.0.13
8-
- aesara>=2.2.2
8+
- aesara>=2.2.6
99
- arviz>=0.11.2
1010
- cachetools
1111
- cloudpickle

pymc/tests/test_initial_point.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414
import aesara
1515
import aesara.tensor as at
16+
import cloudpickle
1617
import numpy as np
1718
import pytest
1819

@@ -218,3 +219,12 @@ def test_moment_from_dims(self, rv_cls):
218219
assert not hasattr(rv.tag, "test_value")
219220
assert tuple(get_moment(rv).shape.eval()) == (4, 3)
220221
pass
222+
223+
224+
def test_pickling_issue_5090():
225+
with pm.Model() as model:
226+
pm.Normal("x", initval="prior")
227+
ip_before = model.recompute_initial_point(seed=5090)
228+
model = cloudpickle.loads(cloudpickle.dumps(model))
229+
ip_after = model.recompute_initial_point(seed=5090)
230+
assert ip_before["x"] == ip_after["x"]

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See that file for comments about the need/usage of each dependency.
33

44
aeppl>=0.0.13
5-
aesara>=2.2.2
5+
aesara>=2.2.6
66
arviz>=0.11.4
77
cachetools>=4.2.1
88
cloudpickle

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
aeppl>=0.0.13
2-
aesara>=2.2.2
2+
aesara>=2.2.6
33
arviz>=0.11.4
44
cachetools>=4.2.1
55
cloudpickle

0 commit comments

Comments
 (0)