create_context#

pharmpy.tools.create_context(name, path=None)[source]#

Create a new context

Currently a local filesystem context (i.e. a directory)

Parameters:
  • name (str) – Name of the context

  • path (str or Path) – Path to where to put the context

Examples

>>> from pharmpy.tools import create_context
>>> ctx = create_context("myproject")