LabeledSubset

class lsst.pipe.base.pipelineIR.LabeledSubset(label: str, subset: Set[str], description: Optional[str])

Bases: object

Intermediate representation of named subset of task labels read from a pipeline yaml file.

Methods Summary

from_primitives(label, value, dict]) Generate LabeledSubset objects given a properly formatted object that as been created by a yaml loader.
to_primitives() Convert to a representation used in yaml serialization

Methods Documentation

static from_primitives(label: str, value: Union[List[str], dict]) → lsst.pipe.base.pipelineIR.LabeledSubset

Generate LabeledSubset objects given a properly formatted object that as been created by a yaml loader.

Parameters:
label : str

The label that will be used to identify this labeled subset.

value : list of str or dict

Object returned from loading a labeled subset section from a yaml document.

Returns:
labeledSubset : LabeledSubset

A LabeledSubset object build from the inputs.

Raises:
ValueError

Raised if the value input is not properly formatted for parsing

to_primitives() → Dict[str, Union[List[str], str]]

Convert to a representation used in yaml serialization