lsst.meas.base  22.0.1-14-g86e9b50+99e7338883
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lsst.meas.base.tests.CentroidTransformTestCase Class Reference
Inheritance diagram for lsst.meas.base.tests.CentroidTransformTestCase:
lsst.meas.base.tests.TransformTestCase

Public Member Functions

def setUp (self)
 
def tearDown (self)
 
def testTransform (self, baseNames=None)
 
def testRegistration (self)
 

Public Attributes

 calexp
 

Static Public Attributes

string name = "MeasurementTransformTest"
 
 controlClass = None
 
 algorithmClass = None
 
 transformClass = None
 
tuple flagNames = ("flag",)
 
tuple singleFramePlugins = ()
 
tuple forcedPlugins = ()
 

Detailed Description

Definition at line 926 of file tests.py.

Member Function Documentation

◆ setUp()

def lsst.meas.base.tests.TransformTestCase.setUp (   self)
inherited

Definition at line 772 of file tests.py.

◆ tearDown()

def lsst.meas.base.tests.TransformTestCase.tearDown (   self)
inherited

Definition at line 777 of file tests.py.

◆ testRegistration()

def lsst.meas.base.tests.TransformTestCase.testRegistration (   self)
inherited
Test that the transformation is appropriately registered.

Definition at line 848 of file tests.py.

◆ testTransform()

def 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 810 of file tests.py.

Member Data Documentation

◆ algorithmClass

lsst.meas.base.tests.TransformTestCase.algorithmClass = None
staticinherited

Definition at line 759 of file tests.py.

◆ calexp

lsst.meas.base.tests.TransformTestCase.calexp
inherited

Definition at line 774 of file tests.py.

◆ controlClass

lsst.meas.base.tests.TransformTestCase.controlClass = None
staticinherited

Definition at line 758 of file tests.py.

◆ flagNames

tuple lsst.meas.base.tests.TransformTestCase.flagNames = ("flag",)
staticinherited

Definition at line 762 of file tests.py.

◆ forcedPlugins

tuple lsst.meas.base.tests.TransformTestCase.forcedPlugins = ()
staticinherited

Definition at line 770 of file tests.py.

◆ name

string lsst.meas.base.tests.TransformTestCase.name = "MeasurementTransformTest"
staticinherited

Definition at line 747 of file tests.py.

◆ singleFramePlugins

tuple lsst.meas.base.tests.TransformTestCase.singleFramePlugins = ()
staticinherited

Definition at line 769 of file tests.py.

◆ transformClass

lsst.meas.base.tests.TransformTestCase.transformClass = None
staticinherited

Definition at line 760 of file tests.py.


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