Skip to content

Commit bc0f621

Browse files
committed
Fix to sampler.
Fix to issue pymc-devs#3481, from @lucianopaz.
1 parent 183bc5f commit bc0f621

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

pymc3/distributions/continuous.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -664,8 +664,13 @@ def random(self, point=None, size=None):
664664
-------
665665
array
666666
"""
667-
mu_v, std_v, a_v, b_v = draw_values(
668-
[self.mu, self.sigma, self.lower, self.upper], point=point, size=size)
667+
mu_v, std_v, a_v, b_v = broadcast_distribution_samples(
668+
draw_values(
669+
[self.mu, self.sigma, self.lower, self.upper],
670+
point=point,
671+
size=size),
672+
size=size,
673+
)
669674
return generate_samples(stats.truncnorm.rvs,
670675
a=(a_v - mu_v)/std_v,
671676
b=(b_v - mu_v) / std_v,

0 commit comments

Comments
 (0)