LocalDirectoryToolDatabase#
- class pharmpy.workflows.LocalDirectoryToolDatabase(toolname=None, path=None, exist_ok=False)[source]#
Bases:
ToolDatabase
ToolDatabase in a local directory
- Parameters:
toolname (str) – Name of the tool
path (str or Path) – Path to directory. Will be created if it does not exist.
exist_ok (bool) – Whether to allow using an existing database.
Methods Summary
from_dict
(d)Read tool metadata
store_local_file
(source_path)Store a local file in the database
store_metadata
(metadata)Store tool metadata
store_results
(res)Store tool results
to_dict
()Methods Documentation
- store_local_file(source_path)[source]#
Store a local file in the database
- Parameters:
source_path (str or Path) – Path to local file