Skip to content

Commit 5bbcb31

Browse files
Fix for #7762: improve readability of broadcastable condition
Co-authored-by: Ricardo Vieira <[email protected]>
1 parent d1a9f59 commit 5bbcb31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc/logprob/mixture.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def find_measurable_index_mixture(fgraph, node):
291291
if any(
292292
hasattr(indices, "dtype")
293293
and indices.dtype.startswith("int")
294-
and sum(1 - b for b in indices.type.broadcastable) > 0
294+
and not all(indices.type.broadcastable)
295295
for indices in mixing_indices
296296
):
297297
return None

0 commit comments

Comments
 (0)