cwltool.context
Shared context objects that replace use of kwargs.
Module Contents
Classes
Shared kwargs based initializer for |
|
Shared kwargs based initializer for |
|
Shared kwargs based initializer for |
Functions
|
Fake implementation of the make tool function. |
|
Move logs from log location to final output. |
|
Set the log directory. |
|
Return the |
Attributes
- class cwltool.context.ContextBase(kwargs=None)
Shared kwargs based initializer for
RuntimeContext
andLoadingContext
.- Parameters:
kwargs (Optional[Dict[str, Any]]) –
- cwltool.context.make_tool_notimpl(toolpath_object, loadingContext)
Fake implementation of the make tool function.
- Parameters:
toolpath_object (ruamel.yaml.comments.CommentedMap) –
loadingContext (LoadingContext) –
- Return type:
- cwltool.context.default_make_tool
- cwltool.context.log_handler(outdir, base_path_logs, stdout_path, stderr_path)
Move logs from log location to final output.
- cwltool.context.set_log_dir(outdir, log_dir, subdir_name)
Set the log directory.
- class cwltool.context.LoadingContext(kwargs=None)
Bases:
ContextBase
Shared kwargs based initializer for
RuntimeContext
andLoadingContext
.- Parameters:
kwargs (Optional[Dict[str, Any]]) –
- copy()
Return a copy of this
LoadingContext
.- Return type:
- class cwltool.context.RuntimeContext(kwargs=None)
Bases:
ContextBase
Shared kwargs based initializer for
RuntimeContext
andLoadingContext
.- Parameters:
kwargs (Optional[Dict[str, Any]]) –
- get_outdir()
Return
outdir
or create one withtmp_outdir_prefix
.- Return type:
- get_tmpdir()
Return
tmpdir
or create one withtmpdir_prefix
.- Return type:
- get_stagedir()
Return
stagedir
or create one withtmpdir_prefix
.- Return type:
- create_tmpdir()
Create a temporary directory that respects
tmpdir_prefix
.- Return type:
- create_outdir()
Create a temporary directory that respects
tmp_outdir_prefix
.- Return type:
- copy()
Return a copy of this
RuntimeContext
.- Return type:
- cwltool.context.getdefault(val, default)
Return the
val
using thedefault
as backup in case the val isNone
.- Parameters:
val (Any) –
default (Any) –
- Return type:
Any