Skip to content

BUG: polynomial: Handle non-array inputs in polynomial class __call__ method. #24349

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

Merged
merged 1 commit into from
Aug 6, 2023

Conversation

WarrenWeckesser
Copy link
Member

Use the utility function polyutils.mapdomain() in the __call__ method of ABCPolyBase. This closes gh-17949 because mapdomain calls np.asanyarray(x) on its first argument.

Closes gh-17949.

… method.

Use the utility function `polyutils.mapdomain()` in the `__call__` method of
`ABCPolyBase`.  This closes numpygh-17949 because `mapdomain` calls `np.asanyarray(x)`
on its first argument.

Closes numpygh-17949.
@WarrenWeckesser
Copy link
Member Author

The one CI failure is the usual unrelated TravisCI issue.

Copy link
Contributor

@rossbar rossbar left a comment

Choose a reason for hiding this comment

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

+1 for this, thanks @WarrenWeckesser !

@rossbar rossbar merged commit 476a69d into numpy:main Aug 6, 2023
@WarrenWeckesser WarrenWeckesser deleted the poly-eval branch August 6, 2023 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Polynomial can't be evaluated on list of numbers only ndarray of numbers
2 participants