combinatorics
combinatorics ¶
CoSyLuigiRepo ¶
Source code in src/cosy_luigi/combinatorics.py
cls_repo: list[tuple[str, Callable, Specification]] = [] instance-attribute ¶
luigi_repo: list[type[CoSyLuigiTask]] = [*tasks] instance-attribute ¶
taxonomy: Mapping[str, set[str]] = defaultdict(set) instance-attribute ¶
__init__(*tasks: type[CoSyLuigiTask]) ¶
Source code in src/cosy_luigi/combinatorics.py
CoSyLuigiTask ¶
Source code in src/cosy_luigi/combinatorics.py
__init_subclass__(**kwargs) ¶
combinator() classmethod ¶
combinator_type() classmethod ¶
Source code in src/cosy_luigi/combinatorics.py
constraints() -> Sequence[Callable[..., bool]] classmethod ¶
get_all_class_attributes() cached classmethod ¶
get_all_instance_attributes() ¶
requires() ¶
Returns a list of other tasks required to run this task. This is done by retrieving all user-created attributes that are subclasses of CosyLuigiTaskParameter.
Note that at Runtime Luigi unpacks CosyLuigiTaskParameters, so the actual check has to be for CoSyLuigiTasks.
:return: A list of other tasks required to run this task