From 8bea7f7ad473082398a2f6b3e291a1a5a36cc6fa Mon Sep 17 00:00:00 2001 From: Josh Borrow Date: Fri, 9 Jan 2026 14:45:38 -0500 Subject: [PATCH] Fixes #325 indexing via boolean --- pixell/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pixell/utils.py b/pixell/utils.py index 8aa769b0..173dcc97 100644 --- a/pixell/utils.py +++ b/pixell/utils.py @@ -2356,7 +2356,7 @@ def block_expand(a, bsize, osize, axis=-1, off=0, op="nearest", inclusive=True): axis %= a.ndim if op == "nearest": if inclusive: - pre, mid, tail = np.split(a, [off>0,(off>0)+nwhole], axis) + pre, mid, tail = np.split(a, [int(off>0),int(off>0)+nwhole], axis) parts = [] if pre.size > 0: parts.append(np.repeat(pre, off, axis)) if mid.size > 0: parts.append(np.repeat(mid, bsize, axis))