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

Optional warning in fill_in_parameters #2578

Merged
merged 1 commit into from
Nov 10, 2024

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Nov 10, 2024

amici.petab.conditions.fill_in_parameters emits a warnings if parameters are supplied that don't occur in the parameter mapping. This is to point out potential issues with the parameter mapping. However, sometimes it's more convenient to silently ignore those extra parameters. Therefore, make this warning optional.

@dweindl dweindl requested a review from a team as a code owner November 10, 2024 09:30
`amici.petab.conditions.fill_in_parameters` emits a warnings if parameters are supplied that don't occur in the parameter mapping.
This is to point out potential issues with the parameter mapping.
However, sometimes it's more convenient to silently ignore those extra parameters. Therefore, make this warning optional.
Copy link

codecov bot commented Nov 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.76%. Comparing base (0009c4a) to head (c06df1d).
Report is 5 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #2578   +/-   ##
========================================
  Coverage    77.76%   77.76%           
========================================
  Files          325      325           
  Lines        21861    21862    +1     
  Branches      1473     1473           
========================================
+ Hits         17000    17001    +1     
  Misses        4834     4834           
  Partials        27       27           
Flag Coverage Δ
cpp 73.64% <0.00%> (+<0.01%) ⬆️
cpp_python 34.21% <100.00%> (-0.01%) ⬇️
petab 37.08% <100.00%> (-0.01%) ⬇️
python 72.42% <100.00%> (+<0.01%) ⬆️

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

Files with missing lines Coverage Δ
python/sdist/amici/petab/conditions.py 97.43% <100.00%> (ø)

... and 1 file with indirect coverage changes

@dweindl dweindl mentioned this pull request Nov 10, 2024
@dweindl dweindl self-assigned this Nov 10, 2024
@dweindl dweindl added this pull request to the merge queue Nov 10, 2024
Merged via the queue into AMICI-dev:develop with commit 4083438 Nov 10, 2024
20 checks passed
@dweindl dweindl deleted the petab_warn_unused branch November 10, 2024 17:47
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