Skip to content

Commit 75c98ec

Browse files
committed
test: Check both variants of static and not static shape
1 parent c2cdbdc commit 75c98ec

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/model/transforms/test_autoreparam.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,21 @@
77

88
@pytest.fixture
99
def model_c():
10-
with pm.Model() as mod:
10+
# TODO: Restructure tests so they check one dist at a time
11+
with pm.Model(coords=dict(a=range(5))) as mod:
1112
m = pm.Normal("m")
1213
s = pm.LogNormal("s")
13-
pm.Normal("g", m, s, shape=5)
14+
pm.Normal("g", m, s, dims="a")
1415
pm.Exponential("e", scale=s, shape=7)
1516
return mod
1617

1718

1819
@pytest.fixture
1920
def model_nc():
20-
with pm.Model() as mod:
21+
with pm.Model(coords=dict(a=range(5))) as mod:
2122
m = pm.Normal("m")
2223
s = pm.LogNormal("s")
23-
pm.Deterministic("g", pm.Normal("z", shape=5) * s + m)
24+
pm.Deterministic("g", pm.Normal("z", dims="a") * s + m)
2425
pm.Deterministic("e", pm.Exponential("z_e", 1, shape=7) * s)
2526
return mod
2627

0 commit comments

Comments
 (0)