retrieve_modelfit_results#

pharmpy.tools.retrieve_modelfit_results(source, name)[source]#

Retrieve the modelfit results of a model

Parameters:
  • source (str, Path, Context) – Source where to find models. Can be a path (as str or Path), or a Context

  • name (str) – Name of the model

Returns:

ModelfitResults – The results object

Examples

>>> from pharmpy.tools import create_context, retrieve_modelfit_results
>>> tooldir_path = 'path/to/tool/directory'
>>> context = create_context("iivsearch1")   
>>> results = retrieve_modelfit_results(context, 'input')