cape.cfdx.caseutils
: Common functions for case-control modules¶
This module provides tools that are used in more than one case-control
modules. For example, run_rootdir()
is used in more than one
place, and putting it here makes the import graph simpler to understand.
Examples of case-control modules include
cape.cfdx.archivist
- cape.cfdx.caseutils.run_rootdir(func)¶
Decorator to run a function within a specified folder
- Call:
>>> func = run_rootdir(func)
- Wrapper Signature:
>>> v = runner.func(*a, **kw)
- Inputs:
- Versions:
2020-02-25
@ddalle
: v1.1 (cape.cntl
)2023-06-16
@ddalle
: v1.0