Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 scipy.interpolate: accept scalar input in __call__ methods #478

Merged
merged 3 commits into from
Mar 12, 2025

Conversation

jorenham
Copy link
Collaborator

This widens the accepted input of the __call__ methods to also accept scalar input in scipy.interpolate, and affects the following public classes:

  • LinearNDInterpolator
  • CloughTocher2DInterpolator
  • PPoly
  • BPoly
  • NdPPoly
  • NdBSpline
  • NearestNDInterpolator
  • KroghInterpolator
  • BarycentricInterpolator
  • RegularGridInterpolator
  • Rbf (legacy)

addresses #476 (comment)

@jorenham jorenham added scipy.interpolate stubs: fix Pull requests that fix an issue labels Mar 11, 2025
@jorenham jorenham added this to the 1.15.2.1 milestone Mar 11, 2025
@jorenham jorenham requested a review from ev-br March 11, 2025 23:17
Copy link
Member

@ev-br ev-br left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

several other atleast 1D arrays. Same reason: a single data point is a 1D array for ndim>1 interpolators.

@jorenham jorenham force-pushed the interpolate-splines-scalar-input branch from 3d4400b to 6501162 Compare March 12, 2025 13:12
@jorenham jorenham merged commit a008f19 into master Mar 12, 2025
23 checks passed
@jorenham jorenham deleted the interpolate-splines-scalar-input branch March 12, 2025 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scipy.interpolate stubs: fix Pull requests that fix an issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants