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

Fix use of removed array rules in test #952

Merged
merged 3 commits into from
Dec 7, 2023

Conversation

HDembinski
Copy link
Member

@HDembinski HDembinski commented Dec 7, 2023

This fixes the failing test and two performance warnings raised in the tests. Like @henryiii suggested, these changes were needed in one particular test which relied on broadcasting rules (in this case they were narrowing rules) that have been removed from numpy.

Previously, it was possible to do this

a = np.zeroes(2)
b = np.ones(1)
a[0] += b # add sequence of length 1 to scalar

@HDembinski HDembinski changed the title Fix strict return types in tests Fix use of deprecated array rules in test Dec 7, 2023
@HDembinski HDembinski changed the title Fix use of deprecated array rules in test Fix use of removed array rules in test Dec 7, 2023
@HDembinski HDembinski merged commit 86c5201 into develop Dec 7, 2023
7 checks passed
@HDembinski HDembinski deleted the fix_strict_return_types_in_tests branch December 7, 2023 12:03
HDembinski added a commit that referenced this pull request Dec 7, 2023
This fixes the failing test and two performance warnings raised in the
tests. Like @henryiii suggested, these changes were needed in one
particular test which relied on broadcasting rules (in this case they
were narrowing rules) that have been removed from numpy.

Previously, it was possible to do this
```
a = np.zeroes(2)
b = np.ones(1)
a[0] += b # add sequence of length 1 to scalar
```
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