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

pytest: ignore log(0) warnings #2448

Merged
merged 1 commit into from
May 15, 2024
Merged

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented May 15, 2024

The warning/error in #2444 is caused by petab.parameters.scale(). Whether this warning should be suppressed there or not is to discussed in the PEtab context. For amici, I'd say we're fine with just accepting np.log(0) == -inf without a warning.

Partial fix for #2444.

The warning/error in AMICI-dev#2444 is caused by `petab.parameters.scale()`.
Whether this warning should be suppressed there or not is to discussed in the PEtab context.
For amici, I'd say we're fine with just accepting `np.log(0) == -inf` without a warnings.

Closes AMICI-dev#2444.
Copy link

codecov bot commented May 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.62%. Comparing base (a63b016) to head (7a90154).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2448      +/-   ##
===========================================
- Coverage    77.64%   77.62%   -0.02%     
===========================================
  Files          324      324              
  Lines        20928    20928              
  Branches      1464     1464              
===========================================
- Hits         16249    16246       -3     
- Misses        4676     4679       +3     
  Partials         3        3              
Flag Coverage Δ
cpp 73.40% <ø> (-0.02%) ⬇️
cpp_python 34.09% <ø> (ø)
petab 36.65% <ø> (ø)
python 72.17% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 3 files with indirect coverage changes

@dweindl dweindl marked this pull request as ready for review May 15, 2024 09:09
@dweindl dweindl requested a review from a team as a code owner May 15, 2024 09:09
@dweindl dweindl self-assigned this May 15, 2024
@dweindl dweindl merged commit e03f829 into AMICI-dev:develop May 15, 2024
17 of 20 checks passed
@dweindl dweindl deleted the ignore_log0_warn branch May 15, 2024 16:26
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.

None yet

2 participants