Skip to content

Use np.errstate to raise on numpy errors, instead of a warning filter - #262

Merged
inducer merged 1 commit into
mainfrom
fix-rdag-numpy-error-catching
Feb 21, 2022
Merged

Use np.errstate to raise on numpy errors, instead of a warning filter#262
inducer merged 1 commit into
mainfrom
fix-rdag-numpy-error-catching

Conversation

@inducer

@inducer inducer commented Feb 21, 2022

Copy link
Copy Markdown
Owner

The previous way broke inducer/pytools#120, which (deliberately) introduced a warning to be raised, which the code being removed turned into an exception.

@inducer
inducer force-pushed the fix-rdag-numpy-error-catching branch from 98d0e8a to fbd6b71 Compare February 21, 2022 05:08
@inducer inducer changed the title Use np.seterr to raise on numpy errors, instead of a warning filter Use np.errstate to raise on numpy errors, instead of a warning filter Feb 21, 2022
@inducer

inducer commented Feb 21, 2022

Copy link
Copy Markdown
Owner Author

Low-impact and simple, proceeding with merge.

@inducer
inducer enabled auto-merge (rebase) February 21, 2022 05:09
@inducer
inducer merged commit f9b1720 into main Feb 21, 2022
@inducer
inducer deleted the fix-rdag-numpy-error-catching branch February 21, 2022 05:42
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