Coverage for tests/test_colorterm.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, 2009, 2010 LSST Corporation. # # 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 <http://www.lsstcorp.org/LegalNotices/>. #
Tests for Colorterm
Run with: python colorterm.py or python >>> import colorterm; colorterm.run() """
# From the last page of http://www.naoj.org/staff/nakata/suprime/illustration/colorterm_report_ver3.pdf # Transformation for griz band between SDSS and SC (estimated with GS83 SEDs) "ham*": ColortermDict(data={ "g": Colorterm(primary="g", secondary="r", c0=-0.00928, c1=-0.0824), "r": Colorterm(primary="r", secondary="i", c0=-0.00282, c1=-0.0498, c2=-0.0149), "i": Colorterm(primary="i", secondary="z", c0=0.00186, c1=-0.140, c2=-0.0196), "z": Colorterm(primary="z", secondary="i", c0=-4.03e-4, c1=0.0967, c2=0.0210), }) })
"""A test case for MaskedImage"""
# A list of simple fake sources. The values are chosen so that the colorterm corrections are # predictable. dict(g=0.0, r=-1.0, fluxErr_g=1.0, fluxErr_r=1.0, true_g=-0.09168, true_fluxErr_g=0.92129230974756315))
"""Check if we can use colour terms"""
"""Test ColortermLibrary.getColorterm"""
# bad filter name
# bad catalog name: not in library
# bad catalog name: glob expression
"""Check if we can use colour terms via transformMags"""
"""Check if we can propagate flux errors"""
"""Ensure color terms can be pickled"""
lsst.utils.tests.init() unittest.main() |