LSSTApplications  18.0.0+56,19.0.0+1,19.0.0+18,19.0.0+19,19.0.0+21,19.0.0+26,19.0.0+5,19.0.0-1-g20d9b18+12,19.0.0-1-g425ff20,19.0.0-1-g5549ca4,19.0.0-1-g580fafe+12,19.0.0-1-g6fe20d0+4,19.0.0-1-g8c57eb9+12,19.0.0-1-ga72da6b,19.0.0-1-gbfe0924+3,19.0.0-1-gdc0e4a7+17,19.0.0-1-ge272bc4+12,19.0.0-1-ge3aa853+3,19.0.0-16-g3a790c8c,19.0.0-18-g955d782+1,19.0.0-2-g0d9f9cd+19,19.0.0-2-g260436e+3,19.0.0-2-g9b11441+6,19.0.0-2-gd955cfd+25,19.0.0-3-g6513920+3,19.0.0-3-gc4f6e04+2,19.0.0-4-g41ffa1d+5,19.0.0-4-g725f80e+21,19.0.0-5-g0745e3f+3,19.0.0-6-g5a632bb5+1,19.0.0-6-gb6b8b0a+3,19.0.0-7-g686a884,19.0.0-7-gea0a0fe+8,19.0.0-9-gd2f60f3c3,w.2020.03
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 # DO NOT import * here, or new geom classes will break the docs
30 from 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 )
39 
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.
43 AffineTransform = deprecate_pybind11(AffineTransform,
44  reason="Replaced by lsst.geom.AffineTransform (will be removed before the release of v20.0)")
45 Angle = deprecate_pybind11(Angle,
46  reason="Replaced by lsst.geom.Angle (will be removed before the release of v20.0)")
47 AngleUnit = deprecate_pybind11(AngleUnit,
48  reason="Replaced by lsst.geom.AngleUnit (will be removed before the release of v20.0)")
49 Box2D = deprecate_pybind11(Box2D,
50  reason="Replaced by lsst.geom.Box2D (will be removed before the release of v20.0)")
51 Box2I = deprecate_pybind11(Box2I,
52  reason="Replaced by lsst.geom.Box2I (will be removed before the release of v20.0)")
53 BoxD = deprecate_pybind11(BoxD,
54  reason="Replaced by lsst.geom.BoxD (will be removed before the release of v20.0)")
55 BoxI = deprecate_pybind11(BoxI,
56  reason="Replaced by lsst.geom.BoxI (will be removed before the release of v20.0)")
57 
58 CoordinateExpr = deprecate_pybind11(CoordinateExpr,
59  reason="Replaced by lsst.geom.CoordinateExpr (will be removed before the release of v20.0)")
60 CoordinateExpr2 = deprecate_pybind11(CoordinateExpr2,
61  reason="Replaced by lsst.geom.CoordinateExpr2 (will be removed before the release of v20.0)")
62 CoordinateExpr3 = deprecate_pybind11(CoordinateExpr3,
63  reason="Replaced by lsst.geom.CoordinateExpr3 (will be removed before the release of v20.0)")
64 Extent = deprecate_pybind11(Extent,
65  reason="Replaced by lsst.geom.Extent (will be removed before the release of v20.0)")
66 Extent2D = deprecate_pybind11(Extent2D,
67  reason="Replaced by lsst.geom.Extent2D (will be removed before the release of v20.0)")
68 Extent2I = deprecate_pybind11(Extent2I,
69  reason="Replaced by lsst.geom.Extent2I (will be removed before the release of v20.0)")
70 Extent3D = deprecate_pybind11(Extent3D,
71  reason="Replaced by lsst.geom.Extent3D (will be removed before the release of v20.0)")
72 Extent3I = deprecate_pybind11(Extent3I,
73  reason="Replaced by lsst.geom.Extent3I (will be removed before the release of v20.0)")
74 ExtentBase2D = deprecate_pybind11(ExtentBase2D,
75  reason="Replaced by lsst.geom.ExtentBase2D (will be removed before the release of v20.0)")
76 ExtentBase2I = deprecate_pybind11(ExtentBase2I,
77  reason="Replaced by lsst.geom.ExtentBase2I (will be removed before the release of v20.0)")
78 ExtentBase3D = deprecate_pybind11(ExtentBase3D,
79  reason="Replaced by lsst.geom.ExtentBase3D (will be removed before the release of v20.0)")
80 ExtentBase3I = deprecate_pybind11(ExtentBase3I, reason="Replaced by lsst.geom.ExtentBase3I (will be removed before the release of v20.0)")
81 ExtentD = deprecate_pybind11(ExtentD,
82  reason="Replaced by lsst.geom.ExtentD (will be removed before the release of v20.0)")
83 ExtentI = deprecate_pybind11(ExtentI,
84  reason="Replaced by lsst.geom.ExtentI (will be removed before the release of v20.0)")
85 LinearTransform = deprecate_pybind11(LinearTransform,
86  reason="Replaced by lsst.geom.LinearTransform (will be removed before the release of v20.0)")
87 Point = deprecate_pybind11(Point,
88  reason="Replaced by lsst.geom.Point (will be removed before the release of v20.0)")
89 Point2D = deprecate_pybind11(Point2D,
90  reason="Replaced by lsst.geom.Point2D (will be removed before the release of v20.0)")
91 Point2I = deprecate_pybind11(Point2I,
92  reason="Replaced by lsst.geom.Point2I (will be removed before the release of v20.0)")
93 Point3D = deprecate_pybind11(Point3D,
94  reason="Replaced by lsst.geom.Point3D (will be removed before the release of v20.0)")
95 Point3I = deprecate_pybind11(Point3I,
96  reason="Replaced by lsst.geom.Point3I (will be removed before the release of v20.0)")
97 PointBase2D = deprecate_pybind11(PointBase2D,
98  reason="Replaced by lsst.geom.PointBase2D (will be removed before the release of v20.0)")
99 PointBase2I = deprecate_pybind11(PointBase2I,
100  reason="Replaced by lsst.geom.PointBase2I (will be removed before the release of v20.0)")
101 PointBase3D = deprecate_pybind11(PointBase3D, reason="Replaced by lsst.geom.PointBase3D (will be removed before the release of v20.0)")
102 PointBase3I = deprecate_pybind11(PointBase3I,
103  reason="Replaced by lsst.geom.PointBase3I (will be removed before the release of v20.0)")
104 PointD = deprecate_pybind11(PointD,
105  reason="Replaced by lsst.geom.PointD (will be removed before the release of v20.0)")
106 PointI = deprecate_pybind11(PointI,
107  reason="Replaced by lsst.geom.PointI (will be removed before the release of v20.0)")
108 SpherePoint = deprecate_pybind11(SpherePoint,
109  reason="Replaced by lsst.geom.SpherePoint (will be removed before the release of v20.0)")
110 arcsecToRad = deprecate_pybind11(arcsecToRad,
111  reason="Replaced by lsst.geom.arcsecToRad (will be removed before the release of v20.0)")
112 averageSpherePoint = deprecate_pybind11(averageSpherePoint,
113  reason="Replaced by lsst.geom.averageSpherePoint (will be removed before the release of v20.0)")
114 degToRad = deprecate_pybind11(degToRad,
115  reason="Replaced by lsst.geom.degToRad (will be removed before the release of v20.0)")
116 isAngle = deprecate_pybind11(isAngle,
117  reason="Replaced by lsst.geom.isAngle (will be removed before the release of v20.0)")
118 makeAffineTransformFromTriple = deprecate_pybind11(makeAffineTransformFromTriple,
119  reason="Replaced by lsst.geom.makeAffineTransformFromTriple (will be removed before the release of v20.0)")
120 masToRad = deprecate_pybind11(masToRad,
121  reason="Replaced by lsst.geom.masToRad (will be removed before the release of v20.0)")
122 radToArcsec = deprecate_pybind11(radToArcsec,
123  reason="Replaced by lsst.geom.radToArcsec (will be removed before the release of v20.0)")
124 radToDeg = deprecate_pybind11(radToDeg,
125  reason="Replaced by lsst.geom.radToDeg (will be removed before the release of v20.0)")
126 radToMas = deprecate_pybind11(radToMas,
127  reason="Replaced by lsst.geom.radToMas (will be removed before the release of v20.0)")
128 
129 del deprecate_pybind11
130 
131 from .ellipses import Ellipse, Quadrupole
132 from .polygon import *
133 from .span import *
134 from .spanSet import *
135 
136 from . import python
137 from .transformConfig import *
138 from .utils import *
139 from .endpoint import *
140 from .transform import *
141 from .transformFactory import *
142 from .transformConfig import *
143 from .skyWcs import *
144 from .transformFromString import *
145 from . import wcsUtils
146 from .sipApproximation import *
def deprecate_pybind11(obj, reason, category=FutureWarning)
Definition: deprecated.py:32