LSSTApplications  18.1.0
LSSTDataManagementBasePackage
Classes | Functions
lsst.ip.isr.linearize Namespace Reference

Classes

class  LinearizeBase
 
class  LinearizeLookupTable
 
class  LinearizeSquared
 

Functions

def getLinearityTypeByName (linearityTypeName)
 

Function Documentation

◆ getLinearityTypeByName()

def lsst.ip.isr.linearize.getLinearityTypeByName (   linearityTypeName)
Determine the linearity class to use if the type is known.

Parameters
----------
linearityTypeName : str
    String name of the linearity type that is needed.

Returns
-------
linearityType : `~lsst.ip.isr.linearize.LinearizeSquared`
    The appropriate linearity class to use.  If no matching class
    is found, `None` is returned.

Definition at line 32 of file linearize.py.

32 def getLinearityTypeByName(linearityTypeName):
33  """Determine the linearity class to use if the type is known.
34 
35  Parameters
36  ----------
37  linearityTypeName : str
38  String name of the linearity type that is needed.
39 
40  Returns
41  -------
42  linearityType : `~lsst.ip.isr.linearize.LinearizeSquared`
43  The appropriate linearity class to use. If no matching class
44  is found, `None` is returned.
45  """
46  for t in [LinearizeLookupTable, LinearizeSquared]:
47  if t.LinearityType == linearityTypeName:
48  return t
49  return None
50 
51 
def getLinearityTypeByName(linearityTypeName)
Definition: linearize.py:32