LocalModelDirectoryDatabase#
- class pharmpy.workflows.LocalModelDirectoryDatabase(path='.', file_extension='.mod')[source]#
Bases:
TransactionalModelDatabase
ModelDatabase implementation for a local directory structure
Files will be stored in separate subdirectories named after each model. There are no restrictions on names of the files so models can have the same name of some connected file without creating a name clash.
- Parameters:
path (str or Path) – Path to the base database directory. Will be created if it does not exist.
file_extension (str) – File extension to use for model files.
Methods Summary
snapshot
(obj)Creates a readable snapshot context for a given model.
transaction
(obj)Creates a writable transaction context for a given model.
Methods Documentation