Skip to content

Commit 88b86d3

Browse files
Jammy2211Jammy2211claude
authored
fix: add _mappings_sizes_weights_split to InterpolatorRectangular (#262)
The property exists on InterpolatorKNN and InterpolatorDelaunay, but was missing from InterpolatorRectangular, so any rectangular mesh + split regularization (ConstantSplit, AdaptSplit, AdaptSplitZeroth) combination raised AttributeError. Rectangular pixelizations use bilinear interpolation which already factors in the 4-corner neighbourhood, so split regularization reuses the same mapping arrays. Co-authored-by: Jammy2211 <JNightingale2211@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 43213ea commit 88b86d3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

autoarray/inversion/mesh/interpolator/rectangular.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,3 +305,10 @@ def _mappings_sizes_weights(self):
305305
sizes = 4 * self._xp.ones(len(mappings), dtype="int")
306306

307307
return mappings, sizes, weights
308+
309+
@cached_property
310+
def _mappings_sizes_weights_split(self):
311+
# Rectangular pixelizations use bilinear interpolation which already factors
312+
# in the 4-corner neighbourhood, so no separate split-cross calculation is
313+
# needed — split regularization reuses the same mappings.
314+
return self._mappings_sizes_weights

0 commit comments

Comments
 (0)