Skip to content

v1.0.1: type-annotate N; fix gradient cache update#17

Merged
kdw503 merged 2 commits into
masterfrom
dwk/mng
May 14, 2026
Merged

v1.0.1: type-annotate N; fix gradient cache update#17
kdw503 merged 2 commits into
masterfrom
dwk/mng

Conversation

@kdw503
Copy link
Copy Markdown
Member

@kdw503 kdw503 commented May 14, 2026

Summary

  • N::Integer annotation in cachedinterpolators: passing a non-integer N now raises a clear MethodError immediately instead of a confusing downstream failure.
  • gradient cache fix: Interpolations.gradient now updates the cache itself (same branch as the functor), so it is safe to call without a preceding itp(ys...). The FIXME comment is replaced by a docstring. gradient! is fixed transitively.
  • Compat bump: Interpolations lower bound raised from 0.14 to 0.15; TagBot workflow comment cleaned up.
  • Version: 1.0.01.0.1

Test plan

  • All 40 existing tests pass
  • Test.detect_ambiguities(CachedInterpolations) returns 0 (unchanged)
  • Verified gradient returns correct results without a prior functor call

🤖 Generated with Claude Code

kdw503 and others added 2 commits May 14, 2026 15:35
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…date

- Add `N::Integer` annotation to `cachedinterpolators` for an immediate,
  clear MethodError on non-integer input
- Make `Interpolations.gradient` self-contained: inlines the cache-update
  block from the functor so callers no longer need a prior `itp(ys...)`
  call; adds a docstring and removes the FIXME comment

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented May 14, 2026

Codecov Report

❌ Patch coverage is 58.33333% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.07%. Comparing base (24545a5) to head (f9dede4).

Files with missing lines Patch % Lines
src/CachedInterpolations.jl 58.33% 5 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##            master      #17      +/-   ##
===========================================
- Coverage   100.00%   91.07%   -8.93%     
===========================================
  Files            1        1              
  Lines           47       56       +9     
===========================================
+ Hits            47       51       +4     
- Misses           0        5       +5     

☔ View full report in Codecov by Sentry.
📢 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.

@kdw503 kdw503 merged commit 810f208 into master May 14, 2026
2 of 4 checks passed
@kdw503 kdw503 deleted the dwk/mng branch May 14, 2026 20:56
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