Skip to content

refactor: Use padding built into Interpolations.jl instead of rolling our own - #33

Merged
icweaver merged 1 commit into
mainfrom
bc-extrapolate
Jul 24, 2026
Merged

refactor: Use padding built into Interpolations.jl instead of rolling our own#33
icweaver merged 1 commit into
mainfrom
bc-extrapolate

Conversation

@icweaver

@icweaver icweaver commented Jul 24, 2026

Copy link
Copy Markdown
Member

pad_edges (which copied the input into a padded array with replicated borders) is replaced by Interpolations.extrapolate with a padding = Flat() keyword on interpolator. Sampling semantics are identical for orders 0 and 1; order 2 changes only within the existing test tolerances and now matches the coordinate-clamping approach modern astropy reproject uses (astropy/reproject#352). This also removes a ::Matrix restriction, so any AbstractMatrix (e.g., an AstroImage) can flow through the interpolation core.

@codecov

codecov Bot commented Jul 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.11%. Comparing base (57b10e6) to head (15a0b1f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #33      +/-   ##
==========================================
- Coverage   94.68%   94.11%   -0.57%     
==========================================
  Files           4        4              
  Lines          94       85       -9     
==========================================
- Hits           89       80       -9     
  Misses          5        5              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@icweaver
icweaver merged commit 45c87ea into main Jul 24, 2026
13 checks passed
@icweaver
icweaver deleted the bc-extrapolate branch July 24, 2026 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant