lsst.obs.base  21.0.0-20-g4449a12+38dfb87bce
Public Member Functions | Public Attributes | List of all members
lsst.obs.base.camera_tests.CameraTests Class Reference
Inheritance diagram for lsst.obs.base.camera_tests.CameraTests:
lsst.obs.base.tests.ObsTests

Public Member Functions

def setUp_camera (self, camera_name=None, n_detectors=None, first_detector_name=None, plate_scale=None)
 
def test_iterable (self)
 
def test_camera_butler (self)
 
def test_plate_scale (self)
 

Public Attributes

 camera_data
 

Detailed Description

Tests that the butler returns a useable Camera.

In the subclasses's setUp():
    * Call setUp_camera() to fill in required parameters.

Definition at line 32 of file camera_tests.py.

Member Function Documentation

◆ setUp_camera()

def lsst.obs.base.camera_tests.CameraTests.setUp_camera (   self,
  camera_name = None,
  n_detectors = None,
  first_detector_name = None,
  plate_scale = None 
)
Set up the necessary variables for camera tests.

Parameters
----------

camera_name : `str`
    name of this camera
n_detectors : `int`
    number of detectors in this camera
first_detector_name : `str`
    name of the first detector in this camera
plate_scale : `lsst.geom.Angle`
    plate scale at center of focal plane, as angle-on-sky/mm

Definition at line 39 of file camera_tests.py.

◆ test_camera_butler()

def lsst.obs.base.camera_tests.CameraTests.test_camera_butler (   self)
Check that the butler returns the right type of camera.

Definition at line 80 of file camera_tests.py.

◆ test_iterable()

def lsst.obs.base.camera_tests.CameraTests.test_iterable (   self)
Simplest camera test: can we get a Camera instance, and does
iterating return Detectors?

Definition at line 71 of file camera_tests.py.

◆ test_plate_scale()

def lsst.obs.base.camera_tests.CameraTests.test_plate_scale (   self)
Check the plate scale at center of focal plane

Check plate_scale using the FOCAL_PLANE to FIELD_ANGLE transform
from the camera.

Definition at line 87 of file camera_tests.py.

Member Data Documentation

◆ camera_data

lsst.obs.base.camera_tests.CameraTests.camera_data

Definition at line 60 of file camera_tests.py.


The documentation for this class was generated from the following file: