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 pypesto/sample/geweke_test.py:202: DeprecationWarning #1207

Closed
dweindl opened this issue Nov 21, 2023 · 0 comments · Fixed by #1217
Closed

Fix pypesto/sample/geweke_test.py:202: DeprecationWarning #1207

dweindl opened this issue Nov 21, 2023 · 0 comments · Fixed by #1217

Comments

@dweindl
Copy link
Member

dweindl commented Nov 21, 2023

test/sample/test_sample.py: 542 warnings
  pyPESTO/pypesto/sample/geweke_test.py:202: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    alpha2[idxs[i]] = alpha2[idxs[i]] / (
@dweindl dweindl added the good first issue Good for newcomers label Nov 21, 2023
@dweindl dweindl self-assigned this Nov 28, 2023
dweindl added a commit to dweindl/pyPESTO that referenced this issue Nov 28, 2023
Fixes
```
test/sample/test_sample.py: 542 warnings
  pyPESTO/pypesto/sample/geweke_test.py:202: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    alpha2[idxs[i]] = alpha2[idxs[i]] / (
```

Fixes ICB-DCM#1207
@dweindl dweindl linked a pull request Nov 28, 2023 that will close this issue
@dweindl dweindl removed the good first issue Good for newcomers label Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants