Skip to content

Accept integer scalar cubic_call inputs - #28

Merged
mcdigman merged 2 commits into
devfrom
codex/accept-integer-scalar-cubic-call
Jul 10, 2026
Merged

Accept integer scalar cubic_call inputs#28
mcdigman merged 2 commits into
devfrom
codex/accept-integer-scalar-cubic-call

Conversation

@mcdigman

@mcdigman mcdigman commented Jul 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • Accept Python and NumPy integer scalar xint inputs in cubic_call and AkimaSpline.__call__ at runtime, but not for type checking
  • Extend the Numba overload to dispatch integer scalar inputs through cubic_call_scalar.
  • Replace integer-rejection assertions with int-vs-float equivalence coverage for Python and njit callers.

Tests

  • pytest -q
  • ruff check pyakima/pyakima.py tests/test_pyakima.py
  • ruff format --check pyakima/pyakima.py tests/test_pyakima.py
  • mypy --ignore-missing-imports --explicit-package-bases pyakima tests/test_pyakima.py

@mcdigman
mcdigman merged commit 9ecd74b into dev Jul 10, 2026
14 checks passed
@mcdigman
mcdigman deleted the codex/accept-integer-scalar-cubic-call branch July 10, 2026 08:51
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