CompositePipeline

class nsb2.core.pipeline.CompositePipeline[source]

Bases: object

Several pipelines run together as one.

Parameters:

pipelines (list of Pipeline) – The pipelines to run.

See also

Pipeline.__add__

The usual way to build one.

Methods Summary

compile(**kwargs)

Compile every constituent pipeline.

predict(observation)

Run every constituent pipeline for one observation.

Methods Documentation

compile(**kwargs)[source]

Compile every constituent pipeline.

Parameters:

**kwargs – Solver-specific compilation options, forwarded to every pipeline.

Returns:

Summed compilation cost metric.

Return type:

float

predict(observation)[source]

Run every constituent pipeline for one observation.

Parameters:

observation (astropy.coordinates.BaseCoordinateFrame) – The telescope pointing frame.

Returns:

The concatenated predictions of every constituent pipeline.

Return type:

list of nsb2.core.dtypes.Prediction

__init__(pipelines)[source]
classmethod __new__(*args, **kwargs)