Skip to content

Commit da14721

Browse files
twieckiaseyboldt
authored andcommitted
MAINT PyMC3 3.5 renamed infer_shape to to_tuple (#61)
1 parent be5a093 commit da14721

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bayesalpha/dists.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,8 @@ def random(self, point=None, size=None):
483483
@staticmethod
484484
def st_random(mu, std, corr, clust, size=None, _dist_shape=None):
485485
mu, std, corr, clust = map(np.asarray, [mu, std, corr, clust])
486-
size = pm.distributions.distribution.infer_shape(size)
487-
_dist_shape = pm.distributions.distribution.infer_shape(_dist_shape)
486+
size = pm.distributions.distribution.to_tuple(size)
487+
_dist_shape = pm.distributions.distribution.to_tuple(_dist_shape)
488488
k = mu.shape[-1]
489489
if corr.ndim == 1:
490490
corr = corr[None, :]

0 commit comments

Comments
 (0)