append_estimation_step_options#

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

Append estimation step options

Appends options to an existing estimation step.

Parameters:
  • model (Model) – Pharmpy model

  • tool_options (dict) – any additional tool specific options

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

Returns:

Model – Pharmpy model object

Examples

>>> from pharmpy.modeling import *
>>> model = load_example_model("pheno")
>>> opts = {'NITER': 1000, 'ISAMPLE': 100}
>>> model = append_estimation_step_options(model, tool_options=opts, idx=0)
>>> est = model.execution_steps[0]
>>> len(est.tool_options)
2