Skip to content

Commit da3a9ef

Browse files
authored
[petab] fix pysb pattern matching (#2118)
* fix pattern matching * Update benchmark_models.yaml
1 parent 0fc51c0 commit da3a9ef

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

python/sdist/amici/petab_util.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ def get_states_in_condition_table(
5858
return states
5959
import pysb.pattern
6060

61+
if not petab_problem.model.model.species:
62+
import pysb.bng
63+
64+
pysb.bng.generate_equations(petab_problem.model.model)
65+
6166
try:
6267
spm = pysb.pattern.SpeciesPatternMatcher(
6368
model=petab_problem.model.model

tests/benchmark-models/benchmark_models.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Borghans_BiophysChem1997:
2323
llh: 83.3237191357272
2424
t_sim: 0.005
2525
t_fwd: 0.5
26-
t_adj: 0.1
26+
t_adj: 0.2
2727
note: benchmark collection reference value matches up to sign when applying log10-correction +sum(log(meas*log(10)) / 2
2828

2929
Brannmark_JBC2010:

0 commit comments

Comments
 (0)