Skip to content

Commit 63210f5

Browse files
committed
Use comprehension instead of map
1 parent 35dd87a commit 63210f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc/distributions/dist_math.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def log_normal(x, mean, **kwargs):
221221
rho = kwargs.get("rho")
222222
tau = kwargs.get("tau")
223223
eps = kwargs.get("eps", 0.0)
224-
check = sum(map(lambda a: a is not None, [sigma, w, rho, tau]))
224+
check = sum(a is not None for a in [sigma, w, rho, tau])
225225
if check > 1:
226226
raise ValueError("more than one required kwarg is passed")
227227
if check == 0:

0 commit comments

Comments
 (0)