Skip to content

Commit 0589203

Browse files
fixes shape tests with new scalar behavior
1 parent fbb6fe2 commit 0589203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc3/distributions/discrete.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ def random(self, point=None, size=None):
972972
return generate_samples(
973973
random_choice,
974974
p=p,
975-
broadcast_shape=p.shape[:-1] or (1,),
975+
broadcast_shape=p.shape[:-1],
976976
dist_shape=self.shape,
977977
size=size,
978978
)

0 commit comments

Comments
 (0)