Skip to content

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
@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