Skip to content

Commit

Permalink
[petab] fix pysb pattern matching (#2118)
Browse files Browse the repository at this point in the history
* fix pattern matching

* Update benchmark_models.yaml
  • Loading branch information
FFroehlich authored Jun 5, 2023
1 parent 0fc51c0 commit da3a9ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions python/sdist/amici/petab_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ def get_states_in_condition_table(
return states
import pysb.pattern

if not petab_problem.model.model.species:
import pysb.bng

pysb.bng.generate_equations(petab_problem.model.model)

try:
spm = pysb.pattern.SpeciesPatternMatcher(
model=petab_problem.model.model
Expand Down
2 changes: 1 addition & 1 deletion tests/benchmark-models/benchmark_models.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Borghans_BiophysChem1997:
llh: 83.3237191357272
t_sim: 0.005
t_fwd: 0.5
t_adj: 0.1
t_adj: 0.2
note: benchmark collection reference value matches up to sign when applying log10-correction +sum(log(meas*log(10)) / 2

Brannmark_JBC2010:
Expand Down

0 comments on commit da3a9ef

Please sign in to comment.