LSSTApplications  17.0+10,17.0+51,17.0+90,18.0.0+10,18.0.0+15,18.0.0+36,18.0.0+4,18.0.0+6,18.0.0-2-ge43143a+6,18.1.0-1-g0001055+2,18.1.0-1-g1349e88+12,18.1.0-1-g2505f39+9,18.1.0-1-g380d4d4+12,18.1.0-1-g5e4b7ea+2,18.1.0-1-g7e8fceb,18.1.0-1-g85f8cd4+9,18.1.0-1-g9a6769a+3,18.1.0-1-ga1a4c1a+8,18.1.0-1-gc037db8+2,18.1.0-1-gd55f500+3,18.1.0-1-ge10677a+9,18.1.0-10-g73b8679e+15,18.1.0-13-g451e75588,18.1.0-13-gbfe7f7f+3,18.1.0-14-g2e73c10,18.1.0-2-g31c43f9+9,18.1.0-2-g9c63283+12,18.1.0-2-gdf0b915+12,18.1.0-2-gf03bb23+2,18.1.0-2-gfefb8b5,18.1.0-3-g52aa583+3,18.1.0-3-g8f4a2b1+3,18.1.0-3-g9cb968e+11,18.1.0-4-g7bbbad0+2,18.1.0-5-g510c42a+11,18.1.0-5-gaeab27e+12,18.1.0-6-gc4bdb98,18.1.0-6-gdda7f3e+14,18.1.0-9-g9613d271,w.2019.34
LSSTDataManagementBasePackage
__init__.py
Go to the documentation of this file.
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 #
22 
23 """Application Framework geometry code including Point, Extent, and ellipses
24 """
25 
26 from lsst.utils import deprecate_pybind11
27 
28 # for backwards compatibility make lsst.geom public symbols available in lsst.afw.geom
29 from lsst.geom import *
30 
31 # But we deprecate the usages of these aliases
32 # Constants (like geom.PI) and units (geom.arcseconds) can not be wrapped
33 # by deprecate_pybind11.
34 AffineTransform = deprecate_pybind11(AffineTransform,
35  reason="Replaced by lsst.geom.AffineTransform (will be removed before the release of v20.0)")
36 Angle = deprecate_pybind11(Angle,
37  reason="Replaced by lsst.geom.Angle (will be removed before the release of v20.0)")
38 AngleUnit = deprecate_pybind11(AngleUnit,
39  reason="Replaced by lsst.geom.AngleUnit (will be removed before the release of v20.0)")
40 Box2D = deprecate_pybind11(Box2D,
41  reason="Replaced by lsst.geom.Box2D (will be removed before the release of v20.0)")
42 Box2I = deprecate_pybind11(Box2I,
43  reason="Replaced by lsst.geom.Box2I (will be removed before the release of v20.0)")
44 BoxD = deprecate_pybind11(BoxD,
45  reason="Replaced by lsst.geom.BoxD (will be removed before the release of v20.0)")
46 BoxI = deprecate_pybind11(BoxI,
47  reason="Replaced by lsst.geom.BoxI (will be removed before the release of v20.0)")
48 
49 CoordinateExpr = deprecate_pybind11(CoordinateExpr,
50  reason="Replaced by lsst.geom.CoordinateExpr (will be removed before the release of v20.0)")
51 CoordinateExpr2 = deprecate_pybind11(CoordinateExpr2,
52  reason="Replaced by lsst.geom.CoordinateExpr2 (will be removed before the release of v20.0)")
53 CoordinateExpr3 = deprecate_pybind11(CoordinateExpr3,
54  reason="Replaced by lsst.geom.CoordinateExpr3 (will be removed before the release of v20.0)")
55 Extent = deprecate_pybind11(Extent,
56  reason="Replaced by lsst.geom.Extent (will be removed before the release of v20.0)")
57 Extent2D = deprecate_pybind11(Extent2D,
58  reason="Replaced by lsst.geom.Extent2D (will be removed before the release of v20.0)")
59 Extent2I = deprecate_pybind11(Extent2I,
60  reason="Replaced by lsst.geom.Extent2I (will be removed before the release of v20.0)")
61 Extent3D = deprecate_pybind11(Extent3D,
62  reason="Replaced by lsst.geom.Extent3D (will be removed before the release of v20.0)")
63 Extent3I = deprecate_pybind11(Extent3I,
64  reason="Replaced by lsst.geom.Extent3I (will be removed before the release of v20.0)")
65 ExtentBase2D = deprecate_pybind11(ExtentBase2D,
66  reason="Replaced by lsst.geom.ExtentBase2D (will be removed before the release of v20.0)")
67 ExtentBase2I = deprecate_pybind11(ExtentBase2I,
68  reason="Replaced by lsst.geom.ExtentBase2I (will be removed before the release of v20.0)")
69 ExtentBase3D = deprecate_pybind11(ExtentBase3D,
70  reason="Replaced by lsst.geom.ExtentBase3D (will be removed before the release of v20.0)")
71 ExtentBase3I = deprecate_pybind11(ExtentBase3I, reason="Replaced by lsst.geom.ExtentBase3I (will be removed before the release of v20.0)")
72 ExtentD = deprecate_pybind11(ExtentD,
73  reason="Replaced by lsst.geom.ExtentD (will be removed before the release of v20.0)")
74 ExtentI = deprecate_pybind11(ExtentI,
75  reason="Replaced by lsst.geom.ExtentI (will be removed before the release of v20.0)")
76 LinearTransform = deprecate_pybind11(LinearTransform,
77  reason="Replaced by lsst.geom.LinearTransform (will be removed before the release of v20.0)")
78 Point = deprecate_pybind11(Point,
79  reason="Replaced by lsst.geom.Point (will be removed before the release of v20.0)")
80 Point2D = deprecate_pybind11(Point2D,
81  reason="Replaced by lsst.geom.Point2D (will be removed before the release of v20.0)")
82 Point2I = deprecate_pybind11(Point2I,
83  reason="Replaced by lsst.geom.Point2I (will be removed before the release of v20.0)")
84 Point3D = deprecate_pybind11(Point3D,
85  reason="Replaced by lsst.geom.Point3D (will be removed before the release of v20.0)")
86 Point3I = deprecate_pybind11(Point3I,
87  reason="Replaced by lsst.geom.Point3I (will be removed before the release of v20.0)")
88 PointBase2D = deprecate_pybind11(PointBase2D,
89  reason="Replaced by lsst.geom.PointBase2D (will be removed before the release of v20.0)")
90 PointBase2I = deprecate_pybind11(PointBase2I,
91  reason="Replaced by lsst.geom.PointBase2I (will be removed before the release of v20.0)")
92 PointBase3D = deprecate_pybind11(PointBase3D, reason="Replaced by lsst.geom.PointBase3D (will be removed before the release of v20.0)")
93 PointBase3I = deprecate_pybind11(PointBase3I,
94  reason="Replaced by lsst.geom.PointBase3I (will be removed before the release of v20.0)")
95 PointD = deprecate_pybind11(PointD,
96  reason="Replaced by lsst.geom.PointD (will be removed before the release of v20.0)")
97 PointI = deprecate_pybind11(PointI,
98  reason="Replaced by lsst.geom.PointI (will be removed before the release of v20.0)")
99 SpherePoint = deprecate_pybind11(SpherePoint,
100  reason="Replaced by lsst.geom.SpherePoint (will be removed before the release of v20.0)")
101 arcsecToRad = deprecate_pybind11(arcsecToRad,
102  reason="Replaced by lsst.geom.arcsecToRad (will be removed before the release of v20.0)")
103 averageSpherePoint = deprecate_pybind11(averageSpherePoint,
104  reason="Replaced by lsst.geom.averageSpherePoint (will be removed before the release of v20.0)")
105 degToRad = deprecate_pybind11(degToRad,
106  reason="Replaced by lsst.geom.degToRad (will be removed before the release of v20.0)")
107 isAngle = deprecate_pybind11(isAngle,
108  reason="Replaced by lsst.geom.isAngle (will be removed before the release of v20.0)")
109 makeAffineTransformFromTriple = deprecate_pybind11(makeAffineTransformFromTriple,
110  reason="Replaced by lsst.geom.makeAffineTransformFromTriple (will be removed before the release of v20.0)")
111 masToRad = deprecate_pybind11(masToRad,
112  reason="Replaced by lsst.geom.masToRad (will be removed before the release of v20.0)")
113 radToArcsec = deprecate_pybind11(radToArcsec,
114  reason="Replaced by lsst.geom.radToArcsec (will be removed before the release of v20.0)")
115 radToDeg = deprecate_pybind11(radToDeg,
116  reason="Replaced by lsst.geom.radToDeg (will be removed before the release of v20.0)")
117 radToMas = deprecate_pybind11(radToMas,
118  reason="Replaced by lsst.geom.radToMas (will be removed before the release of v20.0)")
119 
120 del deprecate_pybind11
121 
122 from .ellipses import Ellipse, Quadrupole
123 from .polygon import *
124 from .span import *
125 from .spanSet import *
126 
127 from . import python
128 from .transformConfig import *
129 from .utils import *
130 from .endpoint import *
131 from .transform import *
132 from .transformFactory import *
133 from .transformConfig import *
134 from .skyWcs import *
135 from .transformFromString import *
136 from . import wcsUtils
137 from .sipApproximation import *
def deprecate_pybind11(func, reason, category=FutureWarning)
Definition: deprecated.py:26