CameraTests

class lsst.obs.base.camera_tests.CameraTests

Bases: object

Tests that the butler returns a useable Camera.

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

Methods Summary

setUp_camera([camera_name, n_detectors, ...])

Set up the necessary variables for camera tests.

test_camera_butler()

Check that the butler returns the right type of camera.

test_iterable()

Get a camera instance and check it is an iterable.

test_plate_scale()

Check the plate scale at center of focal plane.

Methods Documentation

setUp_camera(camera_name=None, n_detectors=None, first_detector_name=None, plate_scale=None)

Set up the necessary variables for camera tests.

Parameters:
camera_namestr

name of this camera

n_detectorsint

number of detectors in this camera

first_detector_namestr

name of the first detector in this camera

plate_scalelsst.geom.Angle

plate scale at center of focal plane, as angle-on-sky/mm

test_camera_butler()

Check that the butler returns the right type of camera.

test_iterable()

Get a camera instance and check it is an iterable.

test_plate_scale()

Check the plate scale at center of focal plane.

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