remove_estimation_step#

pharmpy.modeling.remove_estimation_step(model, idx)[source]#

Remove estimation step

Parameters:
  • model (Model) – Pharmpy model

  • idx (int) – index of estimation step to remove (starting from 0)

Returns:

Model – Pharmpy model object

Examples

>>> from pharmpy.modeling import *
>>> model = load_example_model("pheno")
>>> model = remove_estimation_step(model, 0)
>>> ests = model.estimation_steps
>>> len(ests)
0