Skip to content

Commit 5884a39

Browse files
committed
better for mypy
1 parent 36da40a commit 5884a39

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pymc/testing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,9 +1028,9 @@ def mock_pymc_sample():
10281028
coords={"chain": np.arange(n_chains)},
10291029
)
10301030
idata.add_groups(
1031-
posterior=(idata.prior.mean("chain") * expanded_chains).transpose("chain", "draw", ...),
1031+
posterior=(idata["prior"].mean("chain") * expanded_chains).transpose("chain", "draw", ...),
10321032
)
1033-
del idata.prior
1033+
del idata["prior"]
10341034
if "prior_predictive" in idata:
1035-
del idata.prior_predictive
1035+
del idata["prior_predictive"]
10361036
return idata

0 commit comments

Comments
 (0)