def testWrapAlgorithm(self): """Test that the appropriate transform is provided for wrapped algorithms""" # By default, we inherit from BasePlugin # NB the choice of algorithm and executionOrder is arbitrary singleFrame, forced = measBase.wrapSimpleAlgorithm(measBase.PsfFluxAlgorithm, Control=measBase.PsfFluxControl, executionOrder=measBase.BasePlugin.FLUX_ORDER, doRegister=False) self.assertEqual(singleFrame.getTransformClass(), measBase.BasePlugin.getTransformClass()) # Unless we override singleFrame, forced = measBase.wrapSimpleAlgorithm(measBase.PsfFluxAlgorithm, Control=measBase.PsfFluxControl, executionOrder=measBase.BasePlugin.FLUX_ORDER, doRegister=False, TransformClass=measBase.PassThroughTransform) self.assertEqual(singleFrame.getTransformClass(), measBase.PassThroughTransform)
# (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the LSST License Statement and # the GNU General Public License along with this program. If not, # see <http://www.lsstcorp.org/LegalNotices/>. # from lsst.meas.base import BasePlugin, wrapSimpleAlgorithm from .photometryKron import KronFluxAlgorithm, KronFluxControl, KronAperture __all__ = [ "KronFluxAlgorithm", "KronFluxControl", "KronAperture", "KronFluxPlugin", "KronFluxForcedPlugin" ] KronFluxPlugin, KronFluxForcedPlugin = wrapSimpleAlgorithm( KronFluxAlgorithm, name="ext_photometryKron_KronFlux", Control=KronFluxControl, executionOrder=BasePlugin.FLUX_ORDER, shouldApCorr=True, needsMetadata=True, ) from .version import *
from .dcrModel import * from .psfMatch import * from .imagePsfMatch import * from .modelPsfMatch import * from .snapPsfMatch import * from .diaSourceAnalysis import * from .makeKernelBasisList import * from .diaCatalogSourceSelector import * from .dipoleMeasurement import * from .diffimTools import * from .kernelCandidateQa import * from .getTemplate import * from .diaCatalogSourceSelector import * from lsst.meas.base import wrapSimpleAlgorithm from .dipoleFitTask import * from .imageDecorrelation import * from .imageMapReduce import * from .zogy import * from .version import * # automatically register ip_diffim Algorithms wrapSimpleAlgorithm(NaiveDipoleCentroid, Control=DipoleCentroidControl, executionOrder=0.0) wrapSimpleAlgorithm(NaiveDipoleFlux, Control=DipoleFluxControl, executionOrder=2.0) wrapSimpleAlgorithm(PsfDipoleFlux, Control=PsfDipoleFluxControl, executionOrder=2.0)
# This file is part of meas_base. # # Developed for the LSST Data Management System. # This product includes software developed by the LSST Project # (https://www.lsst.org). # See the COPYRIGHT file at the top-level directory of this distribution # for details of code ownership. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. from lsst.meas.base import wrapSimpleAlgorithm, wrapTransform, BasePlugin from _sillyCentroid import SillyCentroidAlgorithm, SillyCentroidControl, SillyTransform # Do not register SillyCentroid in plugins.py, as it's not part of meas_base wrapSimpleAlgorithm(SillyCentroidAlgorithm, Control=SillyCentroidControl, TransformClass=SillyTransform, executionOrder=BasePlugin.CENTROID_ORDER) wrapTransform(SillyTransform)
# the GNU General Public License along with this program. If not, # see <http://www.lsstcorp.org/LegalNotices/>. # from .version import * # c wrapper from .diffimLib import * # python code from psfMatch import * from imagePsfMatch import * from modelPsfMatch import * from snapPsfMatch import * from diaSourceAnalysis import * from makeKernelBasisList import * from diaCatalogSourceSelector import * from dipoleMeasurement import * from diffimTools import * from kernelCandidateQa import * from getTemplate import * from .diaCatalogSourceSelector import * from lsst.meas.base import wrapSimpleAlgorithm # automatically register ip_diffim Algorithms wrapSimpleAlgorithm(NaiveDipoleCentroid, Control=DipoleCentroidControl, executionOrder=0.0) wrapSimpleAlgorithm(NaiveDipoleFlux, Control=DipoleFluxControl, executionOrder=2.0) wrapSimpleAlgorithm(PsfDipoleFlux, Control=PsfDipoleFluxControl, executionOrder=2.0) del lsst # cleanup namespace
# # You should have received a copy of the LSST License Statement and # the GNU General Public License along with this program. If not, # see <https://www.lsstcorp.org/LegalNotices/>. # """lsst.meas.extensions.shapeHSM """ from lsst.meas.base import BasePlugin, wrapSimpleAlgorithm from .hsmMomentsControl import * from .hsmShapeControl import * from .version import * wrapSimpleAlgorithm(HsmShapeBjAlgorithm, name="ext_shapeHSM_HsmShapeBj", Control=HsmShapeBjControl, executionOrder=BasePlugin.SHAPE_ORDER) wrapSimpleAlgorithm(HsmShapeLinearAlgorithm, name="ext_shapeHSM_HsmShapeLinear", Control=HsmShapeLinearControl, executionOrder=BasePlugin.SHAPE_ORDER) wrapSimpleAlgorithm(HsmShapeKsbAlgorithm, name="ext_shapeHSM_HsmShapeKsb", Control=HsmShapeKsbControl, executionOrder=BasePlugin.SHAPE_ORDER) wrapSimpleAlgorithm(HsmShapeRegaussAlgorithm, name="ext_shapeHSM_HsmShapeRegauss", Control=HsmShapeRegaussControl, executionOrder=BasePlugin.SHAPE_ORDER) wrapSimpleAlgorithm(HsmSourceMomentsAlgorithm, name="ext_shapeHSM_HsmSourceMoments",
# for details of code ownership. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. from lsst.meas.base import BasePlugin, wrapSimpleAlgorithm from .moment import * #from .test import * from .bfdkmoment import * #from .baseMeasure import * #from .measureImage import * #from .measureCoadd import * #from .processBfdPatch import * #from .processBfdCoadd import * #from .processCoadd import * #from .measurePrior import * wrapSimpleAlgorithm(BfdKMoment, name="bfdKMoment", Control=BfdKMomentControl, executionOrder=BasePlugin.SHAPE_ORDER)
# This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the LSST License Statement and # the GNU General Public License along with this program. If not, # see <http://www.lsstcorp.org/LegalNotices/>. # from lsst.meas.base import BasePlugin, wrapSimpleAlgorithm from .photometryKron import KronFluxAlgorithm, KronFluxControl, KronAperture __all__ = ["KronFluxAlgorithm", "KronFluxControl", "KronAperture", "KronFluxPlugin", "KronFluxForcedPlugin"] KronFluxPlugin, KronFluxForcedPlugin = wrapSimpleAlgorithm( KronFluxAlgorithm, name = "ext_photometryKron_KronFlux", Control = KronFluxControl, executionOrder = BasePlugin.FLUX_ORDER, shouldApCorr = True, needsMetadata = True, ) from .version import *
from __future__ import absolute_import, division, print_function import lsst.meas.base as measBase from .simpleShape import * from .version import * # generated by sconsUtils measBase.wrapSimpleAlgorithm(SimpleShape, name="ext_simpleShape_SimpleShape", Control=SimpleShapeControl, executionOrder=measBase.BasePlugin.SHAPE_ORDER)
# GNU General Public License for more details. # # You should have received a copy of the LSST License Statement and # the GNU General Public License along with this program. If not, # see <https://www.lsstcorp.org/LegalNotices/>. # """lsst.meas.extensions.shapeHSM """ from lsst.meas.base import BasePlugin, wrapSimpleAlgorithm from .hsmMomentsControl import * from .hsmShapeControl import * from .version import * wrapSimpleAlgorithm(HsmShapeBjAlgorithm, name="ext_shapeHSM_HsmShapeBj", Control=HsmShapeBjControl, executionOrder=BasePlugin.SHAPE_ORDER) wrapSimpleAlgorithm(HsmShapeLinearAlgorithm, name="ext_shapeHSM_HsmShapeLinear", Control=HsmShapeLinearControl, executionOrder=BasePlugin.SHAPE_ORDER) wrapSimpleAlgorithm(HsmShapeKsbAlgorithm, name="ext_shapeHSM_HsmShapeKsb", Control=HsmShapeKsbControl, executionOrder=BasePlugin.SHAPE_ORDER) wrapSimpleAlgorithm(HsmShapeRegaussAlgorithm, name="ext_shapeHSM_HsmShapeRegauss", Control=HsmShapeRegaussControl, executionOrder=BasePlugin.SHAPE_ORDER) wrapSimpleAlgorithm(HsmSourceMomentsAlgorithm, name="ext_shapeHSM_HsmSourceMoments", Control=HsmSourceMomentsControl, executionOrder=BasePlugin.SHAPE_ORDER) wrapSimpleAlgorithm(HsmSourceMomentsAlgorithm, name="ext_shapeHSM_HsmSourceMomentsRound", Control=HsmSourceMomentsRoundControl, executionOrder=BasePlugin.SHAPE_ORDER) wrapSimpleAlgorithm(HsmPsfMomentsAlgorithm, name="ext_shapeHSM_HsmPsfMoments", Control=HsmPsfMomentsControl, executionOrder=BasePlugin.SHAPE_ORDER)