Coverage for tests/test_cameraGeomShim.py : 94%

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 2015 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 <http://www.lsstcorp.org/LegalNotices/>.
except ImportError: obsHsc = None
# Hard-coded numerical results included below were calculated with cameraGeom # and obs_subaru from hscPipe 3.8.6 using the incantations given.
self.camera[102], # 0_35; 1 quarter rotation self.camera[29], # 1_03; 2 quarter rotations self.camera[100]] # 0_31; 3 quarter rotations
# HSC camGeom: ccd.getOrientation().getNQuarter()
# HSC camGeom: ccd.getOrientation().getYaw().asDegrees()
# HSC uses a scaling of 1mm to 1 pixel.
# HSC camGeom: ccd.getCenter().getPixels(ccd.getPixelSize()) afwGeom.Point2D(6368.58, 15753.83), afwGeom.Point2D(9588.26, -14289.16)]
# HSC camGeom: ccd.getCenterPixel() afwGeom.Point2D(1023.5, 2087.5), afwGeom.Point2D(2087.5, 1023.5)]
# HSC camGeom: ccd.getPositionFromPixel(point).getPixels(ccd.getPixelSize()) afwGeom.Point2D(-923.232793209, -3913.24720843)), (afwGeom.Point2D(-11679.34, -15313.71), afwGeom.Point2D(-11579.3917937, -15213.6582332)), (afwGeom.Point2D(5345.08, 13666.33), afwGeom.Point2D(5445.09318562, 13766.3168126)), (afwGeom.Point2D(7500.76, -15312.66), afwGeom.Point2D(7600.77964856, -15212.6796524))]
"""Run the tests""" unittest.main() |