|
189 | 189 | { |
190 | 190 | "cell_type": "markdown", |
191 | 191 | "metadata": {}, |
192 | | - "source": [ |
193 | | - "The SBML model specifies a single observable named `pPROT` which describes the fraction of phosphorylated Protein. We load this observable using [amici.assignmentRules2observables](https://amici.readthedocs.io/en/latest/generated/amici.sbml_import.html#amici.sbml_import.assignmentRules2observables)." |
194 | | - ] |
| 192 | + "source": "The SBML model specifies a single observable named `pPROT` which describes the fraction of phosphorylated Protein. We load this observable using [amici.assignment_rules_to_observables](https://amici.readthedocs.io/en/latest/generated/amici.sbml_import.html#amici.sbml_import.assignment_rules_to_observables)." |
195 | 193 | }, |
196 | 194 | { |
197 | 195 | "cell_type": "code", |
|
211 | 209 | ], |
212 | 210 | "source": [ |
213 | 211 | "# Retrieve model output names and formulae from AssignmentRules and remove the respective rules\n", |
214 | | - "observables = amici.assignmentRules2observables(\n", |
| 212 | + "observables = amici.assignment_rules_to_observables(\n", |
215 | 213 | " sbml_importer.sbml, # the libsbml model object\n", |
216 | 214 | " filter_function=lambda variable: variable.getName() == \"pPROT\",\n", |
217 | 215 | ")\n", |
|
236 | 234 | " model_name,\n", |
237 | 235 | " model_output_dir,\n", |
238 | 236 | " verbose=False,\n", |
239 | | - " observables=observables,\n", |
| 237 | + " observation_model=observables,\n", |
240 | 238 | " constant_parameters=fixedParameters,\n", |
241 | 239 | ")\n", |
242 | 240 | "# load the generated module\n", |
|
292 | 290 | "# Run simulation using default model parameters and solver options\n", |
293 | 291 | "model.setTimepoints(np.linspace(0, 60, 60))\n", |
294 | 292 | "rdata = amici.runAmiciSimulation(model, solver)\n", |
295 | | - "amici.plotting.plotObservableTrajectories(rdata)" |
| 293 | + "amici.plotting.plot_observable_trajectories(rdata)" |
296 | 294 | ] |
297 | 295 | }, |
298 | 296 | { |
|
324 | 322 | "edata = amici.ExpData(rdata, 0.1, 0.0)\n", |
325 | 323 | "edata.fixedParameters = [0, 2]\n", |
326 | 324 | "rdata = amici.runAmiciSimulation(model, solver, edata)\n", |
327 | | - "amici.plotting.plotObservableTrajectories(rdata)" |
| 325 | + "amici.plotting.plot_observable_trajectories(rdata)" |
328 | 326 | ] |
329 | 327 | }, |
330 | 328 | { |
|
356 | 354 | "source": [ |
357 | 355 | "edata.fixedParametersPreequilibration = [3, 0]\n", |
358 | 356 | "rdata = amici.runAmiciSimulation(model, solver, edata)\n", |
359 | | - "amici.plotting.plotObservableTrajectories(rdata)" |
| 357 | + "amici.plotting.plot_observable_trajectories(rdata)" |
360 | 358 | ] |
361 | 359 | }, |
362 | 360 | { |
|
404 | 402 | ], |
405 | 403 | "source": [ |
406 | 404 | "rdata = amici.runAmiciSimulation(model, solver, edata)\n", |
407 | | - "amici.plotting.plotObservableTrajectories(rdata)" |
| 405 | + "amici.plotting.plot_observable_trajectories(rdata)" |
408 | 406 | ] |
409 | 407 | }, |
410 | 408 | { |
|
449 | 447 | "print(edata.fixedParametersPresimulation)\n", |
450 | 448 | "print(edata.fixedParameters)\n", |
451 | 449 | "rdata = amici.runAmiciSimulation(model, solver, edata)\n", |
452 | | - "amici.plotting.plotObservableTrajectories(rdata)" |
| 450 | + "amici.plotting.plot_observable_trajectories(rdata)" |
453 | 451 | ] |
454 | 452 | } |
455 | 453 | ], |
|
0 commit comments