lsst.meas.algorithms
22.0.0+a7db719c1a
|
Public Member Functions | |
def | factory (cls, stamp_im, metadata, index) |
Single abstract stamp Parameters ---------- Inherit from this class to add metadata to the stamp
def lsst.meas.algorithms.stamps.AbstractStamp.factory | ( | cls, | |
stamp_im, | |||
metadata, | |||
index | |||
) |
This method is needed to service the FITS reader. We need a standard interface to construct objects like this. Parameters needed to construct this object are passed in via a metadata dictionary and then passed to the constructor of this class. Parameters ---------- stamp : `lsst.afw.image.MaskedImage` Pixel data to pass to the constructor metadata : `dict` Dictionary containing the information needed by the constructor. idx : `int` Index into the lists in ``metadata`` Returns ------- stamp : `AbstractStamp` An instance of this class
Reimplemented in lsst.meas.algorithms.stamps.Stamp, and lsst.meas.algorithms.brightStarStamps.BrightStarStamp.