Skip to content

Commit 227efdc

Browse files
committed
free/fixed
1 parent 3de92ef commit 227efdc

File tree

6 files changed

+12
-14
lines changed

6 files changed

+12
-14
lines changed

doc/example/amici.ipynb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@
152152
}
153153
},
154154
"source": [
155-
"#### Constant parameters\n",
155+
"#### Fixed parameters\n",
156156
"\n",
157-
"Constant parameters, i.e., parameters with respect to which no sensitivities are to be computed (these are often parameters specifying a certain experimental condition) are provided as a list of parameter names."
157+
"Fixed parameters, i.e., parameters with respect to which no sensitivities are to be computed (these are often parameters specifying a certain experimental condition) are provided as a list of parameter IDs."
158158
]
159159
},
160160
{
@@ -168,9 +168,7 @@
168168
"name": "#%%\n"
169169
}
170170
},
171-
"source": [
172-
"constant_parameters = [\"ratio\", \"specC17\"]"
173-
],
171+
"source": "fixed_parameters = [\"ratio\", \"specC17\"]",
174172
"outputs": [],
175173
"execution_count": null
176174
},
@@ -255,7 +253,7 @@
255253
" model_output_dir,\n",
256254
" verbose=False,\n",
257255
" observation_model=observables,\n",
258-
" constant_parameters=constant_parameters,\n",
256+
" fixed_parameters=fixed_parameters,\n",
259257
")"
260258
],
261259
"outputs": [],

pypesto/hierarchical/ordinal/calculator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def __call__(
216216
ssigma=ssigma,
217217
parameter_mapping=parameter_mapping,
218218
par_opt_ids=x_ids,
219-
par_sim_ids=amici_model.get_parameter_ids(),
219+
par_sim_ids=amici_model.get_free_parameter_ids(),
220220
par_edatas_indices=[edata.plist for edata in edatas],
221221
snllh=snllh,
222222
)

pypesto/hierarchical/relative/calculator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def calculate_directly(
355355
inner_parameters=inner_parameters,
356356
parameter_mapping=parameter_mapping,
357357
par_opt_ids=x_ids,
358-
par_sim_ids=amici_model.get_parameter_ids(),
358+
par_sim_ids=amici_model.get_free_parameter_ids(),
359359
snllh=snllh,
360360
)
361361
# apply the computed inner parameters to the ReturnData

pypesto/hierarchical/semiquantitative/calculator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def __call__(
220220
amici_ssigma=ssigma,
221221
parameter_mapping=parameter_mapping,
222222
par_opt_ids=x_ids,
223-
par_sim_ids=amici_model.get_parameter_ids(),
223+
par_sim_ids=amici_model.get_free_parameter_ids(),
224224
par_edatas_indices=[edata.plist for edata in edatas],
225225
snllh=snllh,
226226
)

test/base/test_engine.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ def test_deepcopy_objective():
103103

104104
# test some properties
105105
assert (
106-
objective.amici_model.get_parameter_ids()
107-
== objective2.amici_model.get_parameter_ids()
106+
objective.amici_model.get_free_parameter_ids()
107+
== objective2.amici_model.get_free_parameter_ids()
108108
)
109109
assert (
110110
objective.amici_solver.get_sensitivity_order()

test/petab/test_amici_predictor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ def create_intial_assignment(sbml_model, spec_id):
7373
create_observable(sbml_importer.sbml, spec)
7474
create_intial_assignment(sbml_importer.sbml, spec)
7575

76-
# add constant parameters and observables to AMICI model
77-
constant_parameters = ["A0", "B0"]
76+
# add fixed parameters and observables to AMICI model
77+
fixed_parameters = ["A0", "B0"]
7878
observables = amici.assignment_rules_to_observables(
7979
sbml_importer.sbml, # the libsbml model object
8080
filter_function=lambda variable: variable.getId().startswith(
@@ -87,7 +87,7 @@ def create_intial_assignment(sbml_model, spec_id):
8787
model_output_dir,
8888
verbose=False,
8989
observation_model=observables,
90-
constant_parameters=constant_parameters,
90+
fixed_parameters=fixed_parameters,
9191
)
9292

9393
# Importing the module and loading the model

0 commit comments

Comments
 (0)