TaskRegistry

class ase2sprkkr.input_parameters.task_definition.TaskRegistry(input_parameters_registry, extra_tasks_package)[source]

Authoritative namespace and resolver for SPR-KKR task identities.

Task declarations intentionally have two sources. A schema with exactly one canonical task may co-locate its TaskDefinition on the InputParametersDefinition as _task_definition; this keeps the common one-schema/one-task case simple and declarative. Tasks sharing one input schema are declared separately in the extra task package and refer to that schema by name.

The registry owns the task namespace and resolution rules, not necessarily the physical location of each declaration. Consumers should resolve task identities through this registry rather than reading _task_definition directly.

Class hierarchy

Inheritance diagram of ase2sprkkr.input_parameters.task_definition.TaskRegistry


Constructor

__init__(input_parameters_registry, extra_tasks_package)[source]
static normalize_name(name)
_input_task(name)[source]

Tasks, defined by the input_parameters

_extra_task(name)[source]

Tasks, defined separatelly, to be shared by more tasks

names(*, name_contains=None)[source]

Enumerate valid tasks; broken unrelated definitions are skipped.

values(*, name_contains=None)[source]
task_for_parameters(parameters)[source]

Resolve the task represented by concrete parameter values.