Coverage for tests/test_cModelPlugins.py : 95%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# # LSST Data Management System # # Copyright 2008-2016 AURA/LSST. # # This product includes software developed by the # LSST Project (http://www.lsst.org/). # # 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 <https://www.lsstcorp.org/LegalNotices/>. #
# n.b. Some tests here depend on the noise realization in the test data # or from the numpy random number generator. # For the current test data and seed value, they pass, but they may not # if the test data is regenerated or the seed value changes. I've marked # these with an "rng dependent" comment. In most cases, they test that # the measured flux lies within 2 sigma of the correct value, which we # should expect to fail sometimes.
"""Test case for the CModel measurement plugins """
lsst.afw.geom.Extent2I(200, 100)) # first source is a point # second source is extended lsst.afw.geom.ellipses.Quadrupole(8, 9, 3))
"""Test that the outputs of the CModel plugins are reasonable, and that the bookkeeping works.
Science-quality tests either in testCModel.py (where we call the same code via a different interface) or something we have to do statistically on real data. """ trueFlux, rtol=0.5)
"""Test that the plugin for single-frame measurement works, then use those outputs to test that the forced measurement plugin works.""" refSchema=sfmTask.schema) # catalog1 will contain both the SFM outputs and the truth catalog for sources in exposure 1. # Those SFM outputs will also be used as the references for the forced task. if False: # this line should be re-enabled on DM-5405 wcs2 = self.dataset.makePerturbedWcs(self.dataset.exposure.getWcs(), randomSeed=0) else: # catalog2 will contain only the truth catalog for sources in exposure 1; the structure of # ForcedMeasurementTask means we can't put the outputs in the same catalog.
lsst.utils.tests.init() unittest.main() |