LocalDirectoryContext#
- class pharmpy.workflows.LocalDirectoryContext(name, ref=None, common_options=None)[source]#
Bases:
Context
Context in a local directory
- Parameters:
name (str) – Name of the context
ref (str) – Path to directory. Will be created if it does not exist.
Attributes Summary
Methods Summary
create_subcontext
(name)Create a new subcontext of this context
exists
(name[, ref])Get the parent context of this context
get_subcontext
(name)Get one of the subcontexts of this context
Retrieve a list of all model names in the context
Retrieve a list of the names of all subcontexts in the context
retrieve_annotation
(name)Retrieve an annotation for a model
retrieve_key
(name)Retrive the key corresponding to a model name
retrieve_log
([level])Retrieve the entire log all - the entire log current - only the current Context level lower - current and sub levels
Read tool metadata
retrieve_name
(key)Retrieve tool results
store_annotation
(name, annotation)Store an annotation string (description) for a model
store_key
(name, key)Associate a key with a model name
store_message
(severity, ctxpath, date, message)store_metadata
(metadata)Store tool metadata
store_results
(res)Store tool results
Attributes Documentation
- context_path#
Methods Documentation
- retrieve_key(name)[source]#
Retrive the key corresponding to a model name
This key can be used to lookup the model in the model database
- retrieve_log(level='all')[source]#
Retrieve the entire log all - the entire log current - only the current Context level lower - current and sub levels