|
16 | 16 | NOMINAL_VALUE, |
17 | 17 | OBSERVABLE_FORMULA, |
18 | 18 | OBSERVABLE_ID, |
| 19 | + OPERATION_TYPE, |
| 20 | + OT_CUR_VAL, |
19 | 21 | PARAMETER_ID, |
20 | 22 | PETAB_ENTITY_ID, |
21 | 23 | TARGET_ID, |
22 | 24 | TARGET_VALUE, |
23 | 25 | UPPER_BOUND, |
24 | | - VALUE_TYPE, |
25 | | - VT_CONSTANT, |
26 | 26 | ) |
27 | 27 |
|
28 | 28 |
|
@@ -73,7 +73,7 @@ def test_problem_from_yaml_multiple_files(): |
73 | 73 |
|
74 | 74 | for i in (1, 2): |
75 | 75 | problem = Problem() |
76 | | - problem.add_condition(f"condition{i}", parameter1=(VT_CONSTANT, i)) |
| 76 | + problem.add_condition(f"condition{i}", parameter1=(OT_CUR_VAL, i)) |
77 | 77 | petab.write_condition_df( |
78 | 78 | problem.condition_df, Path(tmpdir, f"conditions{i}.tsv") |
79 | 79 | ) |
@@ -109,14 +109,14 @@ def test_problem_from_yaml_multiple_files(): |
109 | 109 | def test_modify_problem(): |
110 | 110 | """Test modifying a problem via the API.""" |
111 | 111 | problem = Problem() |
112 | | - problem.add_condition("condition1", parameter1=(VT_CONSTANT, 1)) |
113 | | - problem.add_condition("condition2", parameter2=(VT_CONSTANT, 2)) |
| 112 | + problem.add_condition("condition1", parameter1=(OT_CUR_VAL, 1)) |
| 113 | + problem.add_condition("condition2", parameter2=(OT_CUR_VAL, 2)) |
114 | 114 |
|
115 | 115 | exp_condition_df = pd.DataFrame( |
116 | 116 | data={ |
117 | 117 | CONDITION_ID: ["condition1", "condition2"], |
118 | 118 | TARGET_ID: ["parameter1", "parameter2"], |
119 | | - VALUE_TYPE: [VT_CONSTANT, VT_CONSTANT], |
| 119 | + OPERATION_TYPE: [OT_CUR_VAL, OT_CUR_VAL], |
120 | 120 | TARGET_VALUE: [1.0, 2.0], |
121 | 121 | } |
122 | 122 | ) |
|
0 commit comments