Skip to content

Commit

Permalink
Faster parameter mapping
Browse files Browse the repository at this point in the history
Reduce parameter mapping time for Froehlich_CellSystems2018 by 88% (1774s -> 216s).
  • Loading branch information
dweindl committed Jan 29, 2025
1 parent 57f5ed5 commit 2964828
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/sdist/amici/petab/parameter_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,7 @@ def _subset_dict(
Subsetted dictionary
"""
for keys in args:
keys = set(keys)
yield {key: val for (key, val) in full.items() if key in keys}


Expand Down

0 comments on commit 2964828

Please sign in to comment.