InputParametersRegistry

class ase2sprkkr.input_parameters.task_definition.InputParametersRegistry(package)[source]

Registry and factory service for input-parameter schemas and values.

Class hierarchy

Inheritance diagram of ase2sprkkr.input_parameters.task_definition.InputParametersRegistry


Constructor

__init__(package)[source]
prepare_value(name, module, value)[source]
iter_canonical_values(*, name_contains=None)[source]

Yield canonical IPDs, excluding named copies used as presets.

definition_for_task(task)[source]

Return the schema identified by declarative task metadata.

create_for_task(task, *, inputfile=None, outputfile=False)[source]

Create InputParameters for a resolved TaskDefinition.

read_for_task(task, file, *, input_definition=None, allow_dangerous=False, allow_incomplete=False, report_invalid=None)[source]

Read input with an exact schema and require it to represent task.

input_definition is primarily for historical reconstruction: when omitted, the task’s current declared schema is used. Passing a schema name or definition selects that exact schema. An explicit definition object may intentionally be unregistered, which supports experimental or custom parsers while retaining the task-identity check.

In strict mode the expected task is not supplied as parsing context. In incomplete mode it is available to callable defaults, but any explicit selector in the file must still agree with the expected task. This allows recovery of a partial file without silently overriding a conflicting task identity.

create_from_result(task, result)[source]

Create InputParameters for task using snapshot defaults from result.

static _resolve_file_templates(parameters, directory, templates)[source]

Resolve templates to concrete TaskFile values without losing metadata.

files_for_task(task, parameters, directory, kind)[source]

Combine declarative task templates with schema-specific file rules.