Skip to content

MAINT: Handle numpy's deprecation of accepting out-of-bound integers.#17209

Merged
rgommers merged 1 commit intoscipy:mainfrom
WarrenWeckesser:numpy-int-deprecation
Oct 12, 2022
Merged

MAINT: Handle numpy's deprecation of accepting out-of-bound integers.#17209
rgommers merged 1 commit intoscipy:mainfrom
WarrenWeckesser:numpy-int-deprecation

Conversation

@WarrenWeckesser
Copy link
Copy Markdown
Member

After the change in numpy/numpy#22385, numpy raises a deprecation warning with calls such as np.int8(5000) and np.uint32(-1). This change avoids such calls in the tests.

After the change in numpy/numpy#22385, numpy
raises a deprecation warning with calls such as np.int8(5000) and
np.uint32(-1).  This change avoids such calls in the tests.
Copy link
Copy Markdown
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

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

All green, in it goes. Thanks @WarrenWeckesser

@rgommers rgommers merged commit 6a7958c into scipy:main Oct 12, 2022
@WarrenWeckesser WarrenWeckesser deleted the numpy-int-deprecation branch October 12, 2022 09:30
@tylerjereddy tylerjereddy modified the milestones: 1.10.0, 1.9.3 Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Items related to regular maintenance tasks scipy.sparse scipy.spatial

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants