Coverage for python/lsst/afw/geom/__init__.py : 100%

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
1#
2# LSST Data Management System
3# Copyright 2008-2017 LSST/AURA.
4#
5# This product includes software developed by the
6# LSST Project (http://www.lsst.org/).
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by
10# the Free Software Foundation, either version 3 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the LSST License Statement and
19# the GNU General Public License along with this program. If not,
20# see <http://www.lsstcorp.org/LegalNotices/>.
21#
23"""Application Framework geometry code including Point, Extent, and ellipses
24"""
26from lsst.utils import deprecate_pybind11
28# for backwards compatibility make lsst.geom public symbols available in lsst.afw.geom
29# DO NOT import * here, or new geom classes will break the docs
30from lsst.geom import (
31 AffineTransform, Angle, AngleUnit, Box2D, Box2I, BoxD, BoxI, CoordinateExpr, CoordinateExpr2,
32 CoordinateExpr3, Extent, Extent2D, Extent2I, Extent3D, Extent3I, ExtentBase2D, ExtentBase2I,
33 ExtentBase3D, ExtentBase3I, ExtentD, ExtentI, LinearTransform, Point, Point2D, Point2I, Point3D,
34 Point3I, PointBase2D, PointBase2I, PointBase3D, PointBase3I, PointD, PointI, SpherePoint, arcsecToRad,
35 averageSpherePoint, degToRad, isAngle, makeAffineTransformFromTriple, masToRad, radToArcsec, radToDeg,
36 radToMas, radians, degrees, hours, arcminutes, arcseconds, milliarcseconds, PI, TWOPI, HALFPI,
37 ONE_OVER_PI, SQRTPI, INVSQRTPI, ROOT2
38)
40# But we deprecate the usages of these aliases
41# Constants (like geom.PI) and units (geom.arcseconds) can not be wrapped
42# by deprecate_pybind11.
43AffineTransform = deprecate_pybind11(AffineTransform,
44 reason="Replaced by lsst.geom.AffineTransform (will be removed before the release of v20.0)")
45Angle = deprecate_pybind11(Angle,
46 reason="Replaced by lsst.geom.Angle (will be removed before the release of v20.0)")
47AngleUnit = deprecate_pybind11(AngleUnit,
48 reason="Replaced by lsst.geom.AngleUnit (will be removed before the release of v20.0)")
49Box2D = deprecate_pybind11(Box2D,
50 reason="Replaced by lsst.geom.Box2D (will be removed before the release of v20.0)")
51Box2I = deprecate_pybind11(Box2I,
52 reason="Replaced by lsst.geom.Box2I (will be removed before the release of v20.0)")
53BoxD = deprecate_pybind11(BoxD,
54 reason="Replaced by lsst.geom.BoxD (will be removed before the release of v20.0)")
55BoxI = deprecate_pybind11(BoxI,
56 reason="Replaced by lsst.geom.BoxI (will be removed before the release of v20.0)")
58CoordinateExpr = deprecate_pybind11(CoordinateExpr,
59 reason="Replaced by lsst.geom.CoordinateExpr (will be removed before the release of v20.0)")
60CoordinateExpr2 = deprecate_pybind11(CoordinateExpr2,
61 reason="Replaced by lsst.geom.CoordinateExpr2 (will be removed before the release of v20.0)")
62CoordinateExpr3 = deprecate_pybind11(CoordinateExpr3,
63 reason="Replaced by lsst.geom.CoordinateExpr3 (will be removed before the release of v20.0)")
64Extent = deprecate_pybind11(Extent,
65 reason="Replaced by lsst.geom.Extent (will be removed before the release of v20.0)")
66Extent2D = deprecate_pybind11(Extent2D,
67 reason="Replaced by lsst.geom.Extent2D (will be removed before the release of v20.0)")
68Extent2I = deprecate_pybind11(Extent2I,
69 reason="Replaced by lsst.geom.Extent2I (will be removed before the release of v20.0)")
70Extent3D = deprecate_pybind11(Extent3D,
71 reason="Replaced by lsst.geom.Extent3D (will be removed before the release of v20.0)")
72Extent3I = deprecate_pybind11(Extent3I,
73 reason="Replaced by lsst.geom.Extent3I (will be removed before the release of v20.0)")
74ExtentBase2D = deprecate_pybind11(ExtentBase2D,
75 reason="Replaced by lsst.geom.ExtentBase2D (will be removed before the release of v20.0)")
76ExtentBase2I = deprecate_pybind11(ExtentBase2I,
77 reason="Replaced by lsst.geom.ExtentBase2I (will be removed before the release of v20.0)")
78ExtentBase3D = deprecate_pybind11(ExtentBase3D,
79 reason="Replaced by lsst.geom.ExtentBase3D (will be removed before the release of v20.0)")
80ExtentBase3I = deprecate_pybind11(ExtentBase3I, reason="Replaced by lsst.geom.ExtentBase3I (will be removed before the release of v20.0)")
81ExtentD = deprecate_pybind11(ExtentD,
82 reason="Replaced by lsst.geom.ExtentD (will be removed before the release of v20.0)")
83ExtentI = deprecate_pybind11(ExtentI,
84 reason="Replaced by lsst.geom.ExtentI (will be removed before the release of v20.0)")
85LinearTransform = deprecate_pybind11(LinearTransform,
86 reason="Replaced by lsst.geom.LinearTransform (will be removed before the release of v20.0)")
87Point = deprecate_pybind11(Point,
88 reason="Replaced by lsst.geom.Point (will be removed before the release of v20.0)")
89Point2D = deprecate_pybind11(Point2D,
90 reason="Replaced by lsst.geom.Point2D (will be removed before the release of v20.0)")
91Point2I = deprecate_pybind11(Point2I,
92 reason="Replaced by lsst.geom.Point2I (will be removed before the release of v20.0)")
93Point3D = deprecate_pybind11(Point3D,
94 reason="Replaced by lsst.geom.Point3D (will be removed before the release of v20.0)")
95Point3I = deprecate_pybind11(Point3I,
96 reason="Replaced by lsst.geom.Point3I (will be removed before the release of v20.0)")
97PointBase2D = deprecate_pybind11(PointBase2D,
98 reason="Replaced by lsst.geom.PointBase2D (will be removed before the release of v20.0)")
99PointBase2I = deprecate_pybind11(PointBase2I,
100 reason="Replaced by lsst.geom.PointBase2I (will be removed before the release of v20.0)")
101PointBase3D = deprecate_pybind11(PointBase3D, reason="Replaced by lsst.geom.PointBase3D (will be removed before the release of v20.0)")
102PointBase3I = deprecate_pybind11(PointBase3I,
103 reason="Replaced by lsst.geom.PointBase3I (will be removed before the release of v20.0)")
104PointD = deprecate_pybind11(PointD,
105 reason="Replaced by lsst.geom.PointD (will be removed before the release of v20.0)")
106PointI = deprecate_pybind11(PointI,
107 reason="Replaced by lsst.geom.PointI (will be removed before the release of v20.0)")
108SpherePoint = deprecate_pybind11(SpherePoint,
109 reason="Replaced by lsst.geom.SpherePoint (will be removed before the release of v20.0)")
110arcsecToRad = deprecate_pybind11(arcsecToRad,
111 reason="Replaced by lsst.geom.arcsecToRad (will be removed before the release of v20.0)")
112averageSpherePoint = deprecate_pybind11(averageSpherePoint,
113 reason="Replaced by lsst.geom.averageSpherePoint (will be removed before the release of v20.0)")
114degToRad = deprecate_pybind11(degToRad,
115 reason="Replaced by lsst.geom.degToRad (will be removed before the release of v20.0)")
116isAngle = deprecate_pybind11(isAngle,
117 reason="Replaced by lsst.geom.isAngle (will be removed before the release of v20.0)")
118makeAffineTransformFromTriple = deprecate_pybind11(makeAffineTransformFromTriple,
119 reason="Replaced by lsst.geom.makeAffineTransformFromTriple (will be removed before the release of v20.0)")
120masToRad = deprecate_pybind11(masToRad,
121 reason="Replaced by lsst.geom.masToRad (will be removed before the release of v20.0)")
122radToArcsec = deprecate_pybind11(radToArcsec,
123 reason="Replaced by lsst.geom.radToArcsec (will be removed before the release of v20.0)")
124radToDeg = deprecate_pybind11(radToDeg,
125 reason="Replaced by lsst.geom.radToDeg (will be removed before the release of v20.0)")
126radToMas = deprecate_pybind11(radToMas,
127 reason="Replaced by lsst.geom.radToMas (will be removed before the release of v20.0)")
129del deprecate_pybind11
131from .ellipses import Ellipse, Quadrupole
132from .polygon import *
133from .span import *
134from .spanSet import *
136from . import python
137from .transformConfig import *
138from .utils import *
139from .endpoint import *
140from .transform import *
141from .transformFactory import *
142from .transformConfig import *
143from .skyWcs import *
144from .transformFromString import *
145from . import wcsUtils
146from .sipApproximation import *
147from .calculateSipWcsHeader import *