You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
perf: separable box dilation in blurring_mask_2d_from for large PSFs #696
blurring_mask_2d_from dilates the unmasked region with a dense np.ones((ky, kx)) structure, and scipy's internal offsets table grows as (ky·kx)². That makes large PSFs very slow and memory hungry (George Vassilakis, hub discussion PyAutoLabs/.github#45: 499×499 took 401 s and 462 GiB). A box structuring element is separable, so a (ky, 1) dilation followed by a (1, kx) dilation gives the identical mask.
Plan
Replace the dense 2-D dilation with two 1-D dilations; the output mask is byte-identical.
Add tests comparing against a dense 2-D reference for odd, even and rectangular kernels.
Shipped: #697 merged on 2026-11-17 (co-authored with @GeorgeVassilakis). Separable box dilation in blurring_mask_2d_from; byte-identical masks; full test_autoarray suite 2418 passed. Pending the next PyPI release.
Activity
GeorgeVassilakis commentedon Nov 17, 2026
@Jammy2211, want me to commit the PR now, or is this issue marking it for yourself to fix? Happy with either!
Jammy2211 commentedon Nov 17, 2026
Shipped: #697 merged on 2026-11-17 (co-authored with @GeorgeVassilakis). Separable box dilation in
blurring_mask_2d_from; byte-identical masks; full test_autoarray suite 2418 passed. Pending the next PyPI release.