|
| | _setFieldsInRecords (self, records, name) |
| |
| | _compareFieldsInRecords (self, inSrc, outSrc, name) |
| |
| | _runTransform (self, doExtend=True) |
| |
| | _populateCatalog (self, baseNames) |
| |
| | _checkOutput (self, baseNames) |
| |
| | _checkRegisteredTransform (self, registry, name) |
| |
Definition at line 953 of file tests.py.
◆ _checkOutput()
| lsst.meas.base.tests.TransformTestCase._checkOutput |
( |
| self, |
|
|
| baseNames ) |
|
protectedinherited |
◆ _checkRegisteredTransform()
| lsst.meas.base.tests.TransformTestCase._checkRegisteredTransform |
( |
| self, |
|
|
| registry, |
|
|
| name ) |
|
protectedinherited |
◆ _compareFieldsInRecords()
| lsst.meas.base.tests.FluxTransformTestCase._compareFieldsInRecords |
( |
| self, |
|
|
| inSrc, |
|
|
| outSrc, |
|
|
| name ) |
|
protected |
◆ _populateCatalog()
| lsst.meas.base.tests.TransformTestCase._populateCatalog |
( |
| self, |
|
|
| baseNames ) |
|
protectedinherited |
◆ _runTransform()
| lsst.meas.base.tests.TransformTestCase._runTransform |
( |
| self, |
|
|
| doExtend = True ) |
|
protectedinherited |
◆ _setFieldsInRecords()
| lsst.meas.base.tests.FluxTransformTestCase._setFieldsInRecords |
( |
| self, |
|
|
| records, |
|
|
| name ) |
|
protected |
◆ setUp()
| lsst.meas.base.tests.TransformTestCase.setUp |
( |
| self | ) |
|
|
inherited |
◆ tearDown()
| lsst.meas.base.tests.TransformTestCase.tearDown |
( |
| self | ) |
|
|
inherited |
◆ testRegistration()
| lsst.meas.base.tests.TransformTestCase.testRegistration |
( |
| self | ) |
|
|
inherited |
Test that the transformation is appropriately registered.
Definition at line 905 of file tests.py.
◆ testTransform()
| lsst.meas.base.tests.TransformTestCase.testTransform |
( |
| self, |
|
|
| baseNames = None ) |
|
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", ...)``.
Definition at line 867 of file tests.py.
◆ _runTransform
| lsst.meas.base.tests.TransformTestCase._runTransform |
|
protectedinherited |
◆ algorithmClass
| lsst.meas.base.tests.TransformTestCase.algorithmClass = None |
|
staticinherited |
◆ calexp
◆ controlClass
| lsst.meas.base.tests.TransformTestCase.controlClass = None |
|
staticinherited |
◆ flagNames
| tuple lsst.meas.base.tests.TransformTestCase.flagNames = ("flag",) |
|
staticinherited |
◆ forcedPlugins
| tuple lsst.meas.base.tests.TransformTestCase.forcedPlugins = () |
|
staticinherited |
◆ inputCat
| lsst.meas.base.tests.TransformTestCase.inputCat = self.mapper) |
|
inherited |
◆ name
| str lsst.meas.base.tests.TransformTestCase.name = "MeasurementTransformTest" |
|
staticinherited |
◆ outputCat
| lsst.meas.base.tests.TransformTestCase.outputCat |
|
inherited |
◆ singleFramePlugins
| tuple lsst.meas.base.tests.TransformTestCase.singleFramePlugins = () |
|
staticinherited |
◆ transformClass
| lsst.meas.base.tests.TransformTestCase.transformClass = None |
|
staticinherited |
The documentation for this class was generated from the following file: