Skip to content

Commit ea5cbf3

Browse files
ColCarrollJunpeng Lao
authored and
Junpeng Lao
committed
Actually remove kwargs.get
1 parent b17c010 commit ea5cbf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymc3/distributions/discrete.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,8 +713,8 @@ def __init__(self, p, *args, **kwargs):
713713
def _random(self, k, p, size=None):
714714
if len(p.shape) > 1:
715715
return np.asarray(
716-
[np.random.choice(k, p=p, size=size)
717-
for p in kwargs['p']]
716+
[np.random.choice(k, p=pp, size=size)
717+
for pp in p]
718718
)
719719
else:
720720
return np.asarray(np.random.choice(k, p=p, size=size))

0 commit comments

Comments
 (0)