list_models#

pharmpy.tools.list_models(context, recursive=False)[source]#

List names of all models in a context

Will by default list only models in the top level, but can list all recursively using the recursive option. This will add the context path to each model name as a qualifier.

Parameters:
  • context (Context) – The context

  • recursive (bool) – Only top level or all levels recursively down.

Returns:

list[str] – A list of the model names