Commit 05314ac
fix: guard zoom_array against plain numpy arrays without is_all_false
When a numpy.ma.MaskedArray (or any object with a .mask attribute that
isn't an autoarray Mask) is passed to zoom_array, accessing
.mask.is_all_false crashes. Add a hasattr check so only autoarray Mask
objects trigger the zoom logic.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 78d06fd commit 05314ac
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
0 commit comments