LSSTApplications  18.1.0
LSSTDataManagementBasePackage
cameraContinued.py
Go to the documentation of this file.
1 #
2 # Developed for the LSST Data Management System.
3 # This product includes software developed by the LSST Project
4 # (https://www.lsst.org).
5 # See the COPYRIGHT file at the top-level directory of this distribution
6 # for details of code ownership.
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 GNU General Public License
19 # along with this program. If not, see <https://www.gnu.org/licenses/>.
20 #
21 
22 
23 # Camera object below is the same one exported by the pybind11 camera
24 # module, so we don't need to re-export it here.
25 __all__ = []
26 
27 from lsst.utils import continueClass, doImport
28 from .camera import Camera
29 
30 
31 @continueClass # noqa: F811
32 class Camera:
33 
34  def getPupilFactory(self, visitInfo, pupilSize, npix, **kwargs):
35  """Construct a PupilFactory.
36 
37  Parameters
38  ----------
39  visitInfo : `~lsst.afw.image.VisitInfo`
40  VisitInfo object for a particular exposure.
41  pupilSize : `float`
42  Size in meters of constructed Pupil array. Note that this may be
43  larger than the actual diameter of the illuminated pupil to
44  accommodate zero-padding.
45  npix : `int`
46  Constructed Pupils will be npix x npix.
47  **kwargs : `dict`
48  Other keyword arguments forwarded to the PupilFactoryClass
49  constructor.
50  """
51  cls = doImport(self.getPupilFactoryName())
52  return cls(visitInfo, pupilSize, npix, **kwargs)
53 
54  @property
55  def telescopeDiameter(self):
56  cls = doImport(self.getPupilFactoryName())
57  return cls.telescopeDiameter
def getPupilFactory(self, visitInfo, pupilSize, npix, kwargs)
def doImport(pythonType)
Definition: utils.py:106