export_model_files#
- pharmpy.tools.export_model_files(context, destination_path=None, force=False)[source]#
Exports all model files to specified directory.
Will export all model files generated/related to the external software used. Files will be named with model name (from context) and original suffix (e.g. model.ctl for modelsearch_run1 -> modelsearch_run1.ctl). If no suffix, file will be named model name and original name (e.g. mytab for modelsearch_run1 -> modelsearch_run1_mytab)
- Parameters:
context (Context) – The context
destination_path (str, Path, None) – Path to export model files to, None means current working directory
force (bool) – Allow file overwrite (default is False)
Examples
>>> from pharmpy.tools import export_model_files >>> ctx = open_context("myrun") >>> export_model_files(ctx)