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

Remove assert_fun argument from gradient checking, improve output #1609

Merged
merged 5 commits into from
Dec 6, 2021

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Dec 6, 2021

Breaking change:

  • previously required argument assert_fun is removed from amici.gradient_check.*
  • check_result and check_close are now private (but were anyways not very useful by themselves)

assert_fun was probably always used to pass assert, and stood in the way of providing proper error messages and meaningful stack traces.

Breaking change: previously reuired argument `assert_fun` is removed from amici.gradient_check.*

`assert_fun` was probably always used to pass `assert`, and stood in the way of providing proper error messages and meaningful stack traces.
@codecov
Copy link

codecov bot commented Dec 6, 2021

Codecov Report

Merging #1609 (0119e7e) into develop (81ae628) will not change coverage.
The diff coverage is 53.57%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #1609   +/-   ##
========================================
  Coverage    78.76%   78.76%           
========================================
  Files           67       67           
  Lines        10683    10683           
========================================
  Hits          8414     8414           
  Misses        2269     2269           
Flag Coverage Δ
cpp 75.41% <ø> (+0.02%) ⬆️
petab 66.81% <53.57%> (-0.03%) ⬇️
python 67.96% <53.57%> (-0.06%) ⬇️

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

Impacted Files Coverage Δ
python/amici/gradient_check.py 85.86% <53.57%> (-2.18%) ⬇️
src/sundials_matrix_wrapper.cpp 82.33% <0.00%> (+0.45%) ⬆️

Copy link
Member

@FFroehlich FFroehlich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

python/amici/gradient_check.py Outdated Show resolved Hide resolved
Co-authored-by: Fabian Fröhlich <fabian_froehlich@hms.harvard.edu>
@sonarcloud
Copy link

sonarcloud bot commented Dec 6, 2021

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

46.7% 46.7% Coverage
0.0% 0.0% Duplication

@dweindl dweindl merged commit ed7a875 into develop Dec 6, 2021
@dweindl dweindl deleted the assert_fun branch December 6, 2021 23:15
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.

2 participants