def __init__(self, name, schema, seeing, config, metadata): deconvKey = schema.addField(name + "_deconv", type="Flag", doc="deconvolution required for seeing %f; no measurement made" % (seeing,)) aperture = lsst.meas.base.CircularApertureFluxAlgorithm(config.aperture.makeControl(), name, schema, metadata) kronKeys = Struct( result=lsst.meas.base.FluxResultKey.addFields(schema, name + "_kron", doc="convolved Kron flux: seeing %f" % (seeing,)), flag=schema.addField(name + "_kron_flag", type="Flag", doc="convolved Kron flux failed: seeing %f" % (seeing,)), ) Struct.__init__(self, deconvKey=deconvKey, aperture=aperture, kronKeys=kronKeys)
def __init__(self, visit, ccd): Struct.__init__(self, visit=visit, ccd=ccd)