Tests of obs_* Butler get() functionality.
In the subclasses's setUp():
* Call setUp_butler_get() to fill in required parameters.
Definition at line 30 of file butler_tests.py.
def lsst.obs.base.butler_tests.ButlerGetTests.setUp_butler_get |
( |
|
self, |
|
|
|
ccdExposureId_bits = None , |
|
|
|
exposureIds = None , |
|
|
|
filters = None , |
|
|
|
exptimes = None , |
|
|
|
detectorIds = None , |
|
|
|
detector_names = None , |
|
|
|
detector_serials = None , |
|
|
|
dimensions = None , |
|
|
|
sky_origin = None , |
|
|
|
raw_subsets = None , |
|
|
|
good_detectorIds = None , |
|
|
|
bad_detectorIds = None , |
|
|
|
linearizer_type = None |
|
) |
| |
Set up the necessary variables for butlerGet tests.
All "exposure name" entries below should correspond to an entry in
self.dataIds.
Parameters
----------
ccdExposureId_bits : `int`
expected value of ccdExposureId_bits
exposureIds : `dict`
dict of exposure name : ccdExposureId (the number as returned by the butler)
filters : `dict`
dict of exposure name : filter name
exptimes : `dict`
dict of exposure name : exposure time
detector_names : `dict`
dict of exposure name : detector name
detectorIds : `dict`
dict of exposure name : detectorId
detector_serials : `dict`
dict of exposure name : detector serial
dimensions : `dict`
dict of exposure name : dimensions (as a geom.Extent2I)
sky_origin : `tuple` of `float`
Longitude, Latitude of 'raw' exposure
raw_subsets : `tuple` of (kwargs, `int`)
keyword args and expected number of subsets for butler.subset('raw', **kwargs)
good_detectorIds : `list` of `int`
list of valid ccd numbers
bad_detectorIds : `list` of `int`
list of invalid ccd numbers
linearizer_type : `dict`
dict of detectorId (usually `int`): LinearizerType
(e.g. lsst.ip.isr.LinearizeLookupTable.LinearityType),
or unittest.SkipTest to skip all linearizer tests.
Definition at line 52 of file butler_tests.py.