LSST Applications
22.0.1,22.0.1+01bcf6a671,22.0.1+046ee49490,22.0.1+05c7de27da,22.0.1+0c6914dbf6,22.0.1+1220d50b50,22.0.1+12fd109e95,22.0.1+1a1dd69893,22.0.1+1c910dc348,22.0.1+1ef34551f5,22.0.1+30170c3d08,22.0.1+39153823fd,22.0.1+611137eacc,22.0.1+771eb1e3e8,22.0.1+94e66cc9ed,22.0.1+9a075d06e2,22.0.1+a5ff6e246e,22.0.1+a7db719c1a,22.0.1+ba0d97e778,22.0.1+bfe1ee9056,22.0.1+c4e1e0358a,22.0.1+cc34b8281e,22.0.1+d640e2c0fa,22.0.1+d72a2e677a,22.0.1+d9a6b571bd,22.0.1+e485e9761b,22.0.1+ebe8d3385e
LSST Data Management Base Package
|
Public Member Functions | |
def | __init__ (self, loaded_yaml) |
PipelineIR | subset_from_labels (self, Set[str] labelSpecifier) |
def | from_string (cls, str pipeline_string) |
PipelineIR | from_file (cls, str filename) |
PipelineIR | from_uri (cls, Union[str, ButlerURI] uri) |
def | to_file (self, str filename) |
def | write_to_uri (self, Union[ButlerURI, str] uri) |
Dict[str, Any] | to_primitives (self) |
str | __str__ (self) |
str | __repr__ (self) |
def | __eq__ (self, object other) |
Public Attributes | |
description | |
instrument | |
contracts | |
parameters | |
labeled_subsets | |
imports | |
tasks | |
Intermediate representation of a pipeline definition Parameters ---------- loaded_yaml : `dict` A dictionary which matches the structure that would be produced by a yaml reader which parses a pipeline definition document Raises ------ ValueError : - If a pipeline is declared without a description - If no tasks are declared in a pipeline, and no pipelines are to be inherited - If more than one instrument is specified - If more than one inherited pipeline share a label
Definition at line 459 of file pipelineIR.py.
def lsst.pipe.base.pipelineIR.PipelineIR.__init__ | ( | self, | |
loaded_yaml | |||
) |
Definition at line 477 of file pipelineIR.py.
def lsst.pipe.base.pipelineIR.PipelineIR.__eq__ | ( | self, | |
object | other | ||
) |
Definition at line 895 of file pipelineIR.py.
str lsst.pipe.base.pipelineIR.PipelineIR.__repr__ | ( | self | ) |
Instance formatting as how it would look in yaml representation
Definition at line 890 of file pipelineIR.py.
str lsst.pipe.base.pipelineIR.PipelineIR.__str__ | ( | self | ) |
Instance formatting as how it would look in yaml representation
Definition at line 885 of file pipelineIR.py.
PipelineIR lsst.pipe.base.pipelineIR.PipelineIR.from_file | ( | cls, | |
str | filename | ||
) |
Create a `PipelineIR` object from the document specified by the input path. Parameters ---------- filename : `str` Location of document to use in creating a `PipelineIR` object. Returns ------- pipelineIR : `PipelineIR` The loaded pipeline Note ---- This method is deprecated, please use from_uri
Definition at line 798 of file pipelineIR.py.
def lsst.pipe.base.pipelineIR.PipelineIR.from_string | ( | cls, | |
str | pipeline_string | ||
) |
Create a `PipelineIR` object from a string formatted like a pipeline document Parameters ---------- pipeline_string : `str` A string that is formatted according like a pipeline document
Definition at line 784 of file pipelineIR.py.
PipelineIR lsst.pipe.base.pipelineIR.PipelineIR.from_uri | ( | cls, | |
Union[str, ButlerURI] | uri | ||
) |
Create a `PipelineIR` object from the document specified by the input uri. Parameters ---------- uri: `str` or `ButlerURI` Location of document to use in creating a `PipelineIR` object. Returns ------- pipelineIR : `PipelineIR` The loaded pipeline
Definition at line 819 of file pipelineIR.py.
PipelineIR lsst.pipe.base.pipelineIR.PipelineIR.subset_from_labels | ( | self, | |
Set[str] | labelSpecifier | ||
) |
Subset a pipelineIR to contain only labels specified in labelSpecifier. Parameters ---------- labelSpecifier : `set` of `str` Set containing labels that describes how to subset a pipeline. Returns ------- pipeline : `PipelineIR` A new pipelineIR object that is a subset of the old pipelineIR Raises ------ ValueError Raised if there is an issue with specified labels Notes ----- This method attempts to prune any contracts that contain labels which are not in the declared subset of labels. This pruning is done using a string based matching due to the nature of contracts and may prune more than it should. Any labeled subsets defined that no longer have all members of the subset present in the pipeline will be removed from the resulting pipeline.
Definition at line 718 of file pipelineIR.py.
def lsst.pipe.base.pipelineIR.PipelineIR.to_file | ( | self, | |
str | filename | ||
) |
Serialize this `PipelineIR` object into a yaml formatted string and write the output to a file at the specified path. Parameters ---------- filename : `str` Location of document to write a `PipelineIR` object.
Definition at line 847 of file pipelineIR.py.
Dict[str, Any] lsst.pipe.base.pipelineIR.PipelineIR.to_primitives | ( | self | ) |
Convert to a representation used in yaml serialization
Definition at line 870 of file pipelineIR.py.
def lsst.pipe.base.pipelineIR.PipelineIR.write_to_uri | ( | self, | |
Union[ButlerURI, str] | uri | ||
) |
Serialize this `PipelineIR` object into a yaml formatted string and write the output to a file at the specified uri. Parameters ---------- uri: `str` or `ButlerURI` Location of document to write a `PipelineIR` object.
Definition at line 858 of file pipelineIR.py.
lsst.pipe.base.pipelineIR.PipelineIR.contracts |
Definition at line 525 of file pipelineIR.py.
lsst.pipe.base.pipelineIR.PipelineIR.description |
Definition at line 487 of file pipelineIR.py.
lsst.pipe.base.pipelineIR.PipelineIR.imports |
Definition at line 607 of file pipelineIR.py.
lsst.pipe.base.pipelineIR.PipelineIR.instrument |
Definition at line 496 of file pipelineIR.py.
lsst.pipe.base.pipelineIR.PipelineIR.labeled_subsets |
Definition at line 556 of file pipelineIR.py.
lsst.pipe.base.pipelineIR.PipelineIR.parameters |
Definition at line 544 of file pipelineIR.py.
lsst.pipe.base.pipelineIR.PipelineIR.tasks |
Definition at line 660 of file pipelineIR.py.