|
lsst.meas.base ga44f29b7aa+21155385c5
|
Public Member Functions | |
| setUp (self) | |
| tearDown (self) | |
| testTransform (self, baseNames=None) | |
| testRegistration (self) | |
Public Attributes | |
| calexp = TestDataset.makeEmptyExposure(bbox) | |
| inputCat | |
| outputCat | |
Static Public Attributes | |
| str | name = "MeasurementTransformTest" |
| controlClass = None | |
| algorithmClass = None | |
| transformClass = None | |
| tuple | flagNames = ("flag",) |
| tuple | singleFramePlugins = () |
| tuple | forcedPlugins = () |
Protected Member Functions | |
| _setFieldsInRecords (self, records, name) | |
| _compareFieldsInRecords (self, inSrc, outSrc, name) | |
| _runTransform (self, doExtend=True) | |
| _populateCatalog (self, baseNames) | |
| _checkOutput (self, baseNames) | |
| _checkRegisteredTransform (self, registry, name) | |
Protected Attributes | |
| _runTransform | |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Test the transformation on a catalog containing random data.
Parameters
----------
baseNames : iterable of `str`
Iterable of the initial parts of measurement field names.
Notes
-----
We check that:
- An appropriate exception is raised on an attempt to transform
between catalogs with different numbers of rows;
- Otherwise, all appropriate conversions are properly appled and that
flags have been propagated.
The ``baseNames`` argument requires some explanation. This should be
an iterable of the leading parts of the field names for each
measurement; that is, everything that appears before ``_instFlux``,
``_flag``, etc. In the simple case of a single measurement per plugin,
this is simply equal to ``self.name`` (thus measurements are stored as
``self.name + "_instFlux"``, etc). More generally, the developer may
specify whatever iterable they require. For example, to handle
multiple apertures, we could have ``(self.name + "_0", self.name +
"_1", ...)``.
|
protectedinherited |
|
staticinherited |
|
inherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |