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

Allow subsetting simulation conditions in simulate_petab #2199

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Nov 15, 2023

simulate_petab was mainly intended to simulate all conditions at once, but the simulation_conditions argument provides also an easy way to simulate only a subset of conditions. However, this currently fails, because the full parameter mapping is generated and then the wrong parameter mapping is used for the selected conditions (unless the subset matches the first N conditions of the full list).

This is fixed here. Also it saves a minuscule amount of time.

simulate_petab was mainly intended to simulate all conditions at once,
but the `simulation_conditions` argument provides also an easy way to
simulate only a subset of conditions. However, this currently fails,
because the full parameter mapping is used an then wrong conditions
are assigned.

This is fixed here. Also it saved a minuscule amount of time.
@dweindl dweindl requested a review from plakrisenko November 15, 2023 19:08
@dweindl dweindl requested a review from a team as a code owner November 15, 2023 19:08
Copy link

codecov bot commented Nov 15, 2023

Codecov Report

Merging #2199 (f78940b) into develop (1726f43) will increase coverage by 0.87%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2199      +/-   ##
===========================================
+ Coverage    76.59%   77.47%   +0.87%     
===========================================
  Files           82       82              
  Lines        15012    15012              
===========================================
+ Hits         11499    11631     +132     
+ Misses        3513     3381     -132     
Flag Coverage Δ
cpp 73.53% <ø> (+0.06%) ⬆️
petab 53.80% <ø> (ø)
python 79.51% <ø> (+2.27%) ⬆️
sbmlsuite ?

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

Files Coverage Δ
python/sdist/amici/petab_objective.py 90.03% <ø> (ø)

... and 2 files with indirect coverage changes

@dweindl dweindl added this pull request to the merge queue Nov 15, 2023
Merged via the queue into develop with commit 48b8629 Nov 15, 2023
18 of 19 checks passed
@dweindl dweindl deleted the fix_simulate_petab_subset branch December 1, 2023 14:34
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