Skip to content

Commit

Permalink
Adjusted Tests to init file change
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Mar 3, 2022
1 parent cc2e8c1 commit 7802a61
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
14 changes: 13 additions & 1 deletion examples/ThinLayers/COPASI/Model_4_init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,61 +3,73 @@ global:
initial_value: 20
upper: 50
lower: 0.01
constant: false
K_n:
initial_value: 290
upper: 1000
lower: 0.01
constant: false
v_r:
initial_value: 10000
upper: null
lower: null
constant: true
r1:
K_s:
initial_value: 14
upper: 1000
lower: 0.01
constant: false
r2:
k_2:
initial_value: 432
upper: 1000000
lower: 0.01
constant: false
r5:
k_6:
initial_value: 1660
upper: 1000000
lower: 0.01
constant: false
r6:
k_3:
initial_value: 417
upper: 1000000
lower: 0.01
constant: false
r7:
K_pg:
initial_value: 12
upper: 1000
lower: 0.01
constant: false
r9:
k_5:
initial_value: 491
upper: 1000000
lower: 0.01
constant: false
r10:
k_4:
initial_value: 73600
upper: 1000000
lower: 0.01
constant: false
k_4b:
initial_value: 9126
upper: 1000000
lower: 0.01
constant: false
r11:
K_p:
initial_value: 39
upper: 10000
lower: 0.01
constant: false
r12:
k_d:
initial_value: 0.000643
upper: 0.5
lower: 0.3

constant: false
7 changes: 6 additions & 1 deletion tests/enzymeml/core/test_enzymereaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,12 @@ def test_initial_value_application(self, enzmldoc):

# Correct test case
# Set up initial values and get reaction
init_values = {"x": {"initial_value": 100.0}}
init_values = {"x": {
"initial_value": 100.0,
"upper": 200.0,
"lower": 0,
"constant": False
}}
reaction = enzmldoc.getReaction("r0")

# Apply method and assert
Expand Down

0 comments on commit 7802a61

Please sign in to comment.