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

Removed DeprecationWaning of NumPy #1158

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

PaulJonasJost
Copy link
Collaborator

Warning for example here:

test/sample/test_sample.py: 159569 warnings
  /home/runner/work/pyPESTO/pyPESTO/test/sample/test_sample.py:21: 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.)
    return float(norm.logpdf(x))

As noticeable, it is a warning occurring approx 160.000 times.

@codecov-commenter
Copy link

codecov-commenter commented Oct 25, 2023

Codecov Report

Merging #1158 (55b71e4) into develop (160c2a8) will decrease coverage by 3.79%.
Report is 404 commits behind head on develop.
The diff coverage is 87.95%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@             Coverage Diff             @@
##           develop    #1158      +/-   ##
===========================================
- Coverage    88.16%   84.38%   -3.79%     
===========================================
  Files           79      148      +69     
  Lines         5257    11649    +6392     
===========================================
+ Hits          4635     9830    +5195     
- Misses         622     1819    +1197     
Files Coverage Δ
pypesto/C.py 100.00% <100.00%> (ø)
pypesto/__init__.py 100.00% <100.00%> (ø)
pypesto/engine/__init__.py 100.00% <100.00%> (ø)
pypesto/engine/multi_process.py 93.10% <100.00%> (+0.79%) ⬆️
pypesto/engine/multi_thread.py 100.00% <100.00%> (ø)
pypesto/engine/single_core.py 100.00% <100.00%> (ø)
pypesto/engine/task.py 100.00% <100.00%> (ø)
pypesto/ensemble/__init__.py 100.00% <100.00%> (ø)
pypesto/ensemble/task.py 100.00% <100.00%> (ø)
pypesto/hierarchical/__init__.py 100.00% <100.00%> (ø)
... and 138 more

@PaulJonasJost PaulJonasJost merged commit 7210de8 into develop Oct 26, 2023
17 checks passed
@PaulJonasJost PaulJonasJost deleted the remove_numpy_warnings_array_to_scalar branch October 26, 2023 15:18
This was referenced Nov 15, 2023
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.

3 participants