Coverage for python/lsst/sims/coordUtils/LsstCameraMethod.py : 12%

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
2__all__ = ["lsst_camera"]
5def lsst_camera():
6 """
7 Return a copy of the LSST Camera model as stored in obs_lsstSim.
8 """
9 msg = "\n\n"
10 msg += "You are calling sims_coordUtils.lsst_camera().\n"
11 msg += "This used to return a model for the LSST camera based on "
12 msg += "lsst.obs.lsstSim.\n"
13 msg += "lsst.obs.lsstSim is no longer a supported part of the LSST stack.\n"
14 msg += "It has been replaced with lsst.obs.lsst. Because lsst.obs.lsst uses\n"
15 msg += "different coordinate conventions than lsst.obs.lsstSim, it was\n"
16 msg += "decided not to port the LsstCameraUtils functionality over to\n"
17 msg += "using lsst.obs.lsst. If you would still like to use the functionality\n"
18 msg += "provided by sims_coordUtils for mapping sky coordinates to focal plane\n"
19 msg += "coordinates, it is recommended that you use the methods in\n"
20 msg += "lsst.sims.coordUtils.CameraUtils with a camera instantiated as\n\n"
21 msg += "lsst.obs.lsst.phosim.PhosimMapper().camera\n\n"
23 raise RuntimeError(msg)
24 return None