lsst.pipe.base  21.0.0-19-g1f131b1+06b35558e6
Public Member Functions | Static Public Member Functions | List of all members
lsst.pipe.base.pipelineIR.LabeledSubset Class Reference

Public Member Functions

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

Static Public Member Functions

LabeledSubset from_primitives (str label, Union[List[str], dict] value)
 

Detailed Description

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

Definition at line 103 of file pipelineIR.py.

Member Function Documentation

◆ from_primitives()

LabeledSubset lsst.pipe.base.pipelineIR.LabeledSubset.from_primitives ( str  label,
Union[List[str], dict]  value 
)
static
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

Definition at line 118 of file pipelineIR.py.

◆ to_primitives()

Dict[str, Union[List[str], str]] lsst.pipe.base.pipelineIR.LabeledSubset.to_primitives (   self)
Convert to a representation used in yaml serialization

Definition at line 156 of file pipelineIR.py.


The documentation for this class was generated from the following file: