LinearitySolveConfig#
- class lsst.cp.pipe.LinearitySolveConfig(*args, **kw)#
Bases:
PipelineTaskConfigConfiguration for solving the linearity from PTC dataset.
Attributes Summary
Calculate and apply a correction to the photodiode readings? (
bool, defaultFalse)Only do auto-grouping when the signal is this fraction of the maximum signal.
Minimum relative jump from sorted conversion values to determine a group.
Use exposure time to determine automatic grouping.
Field which refers to a dynamically added configuration class which is based on a PipelineTaskConnections class.
Do automatic group detection? Cannot be True if splineGroupingColumn is also set.
Fit a scattered light offset in the spline fit.
Fit temperature coefficient in spline fit? (
bool, defaultFalse)Fit a linear temporal parameter coefficient in spline fit? (
bool, defaultFalse)Fit linearity weight parameters in the spline fit.
Ignore the expIdMask set by the PTC solver? Deprecated: This field is no longer used.
Type of linearizer to construct.
Maximum fraction deviation from raw linearity to compute linearityTurnoff and linearityMaxSignal.
Maximum adu value to use to estimate linear term; not used with spline fits.
Maximum DN value for a LookupTable linearizer.
Minimum adu value to use to estimate linear term.
Minimum value to trust photodiode signals.
Minimum signal to compute raw linearity slope for linearityTurnoff.
Maximum deviation from linear solution for Poissonian noise.
Degree of polynomial to fit.
Flag to enable/disable saving of log output for a task, enabled by default.
Maximum number of iterations for spline fit.
Maximum number of rejections per iteration for spline fit.
Minimum number of iterations for spline fit.
Name of the temperature column to use when fitting temperature coefficients in spline fit; this must not be None if doSplineFitTemperature is True.
Starting parameters for weight fit, if doSplineFitWeights=True.
Column to use for grouping together points for Spline mode, to allow for different proportionality constants.
Minimum number of linearity points to allow grouping together points for Spline mode with splineGroupingColumn.
Number of spline knots to use in fit.
Will this linearizer be used on trimmed data? (
bool, defaultTrue)Use focal-plane normalization in addition to/instead of photodiode? (Only used with spline fitting).
Use a linearizer ptc in a single pipeline? (
bool, defaultFalse)Use the photodiode info instead of the raw expTimes? (
bool, defaultFalse)Methods Summary
validate()Validate the Config, raising an exception if invalid.
Attributes Documentation
- applyPhotodiodeCorrection#
Calculate and apply a correction to the photodiode readings? (
bool, defaultFalse)
- autoGroupingMaxSignalFraction#
Only do auto-grouping when the signal is this fraction of the maximum signal. All exposures with signal higher than this threshold will be put into the largest signal group. This config is needed if the input PTC goes beyond the linearity turnoff. (
float, default0.9)
- autoGroupingThreshold#
Minimum relative jump from sorted conversion values to determine a group. (
float, default0.1)
- autoGroupingUseExptime#
Use exposure time to determine automatic grouping. Used if doAutoGrouping=True. (
bool, defaultTrue)
- connections: pexConfig.ConfigField#
Field which refers to a dynamically added configuration class which is based on a PipelineTaskConnections class.
- doAutoGrouping#
Do automatic group detection? Cannot be True if splineGroupingColumn is also set. The automatic group detection will use the ratio of signal to exposure time (if autoGroupingUseExptime is True) or photodiode (if False) to determine which flat pairs were taken with different illumination settings. (
bool, defaultFalse)
- doSplineFitOffset#
Fit a scattered light offset in the spline fit. (
bool, defaultTrue)
- doSplineFitTemperature#
Fit temperature coefficient in spline fit? (
bool, defaultFalse)
- doSplineFitTemporal#
Fit a linear temporal parameter coefficient in spline fit? (
bool, defaultFalse)
- doSplineFitWeights#
Fit linearity weight parameters in the spline fit. (
bool, defaultFalse)
- ignorePtcMask#
Ignore the expIdMask set by the PTC solver? Deprecated: This field is no longer used. Will be removed after v28. (
bool, defaultFalse)
- linearityType#
Type of linearizer to construct. (
str, default'Squared')Allowed values:
'LookupTable'Create a lookup table solution.
'Polynomial'Create an arbitrary polynomial solution.
'Squared'Create a single order squared solution.
'Spline'Create a spline based solution.
'None'Create a dummy solution.
'None'Field is optional
- maxFracLinearityDeviation#
Maximum fraction deviation from raw linearity to compute linearityTurnoff and linearityMaxSignal. (
float, default0.01)
- maxLinearAdu#
Maximum adu value to use to estimate linear term; not used with spline fits. (
float, default20000.0)
- maxLookupTableAdu#
Maximum DN value for a LookupTable linearizer. (
int, default262144)
- minLinearAdu#
Minimum adu value to use to estimate linear term. (
float, default30.0)
- minPhotodiodeCurrent#
Minimum value to trust photodiode signals. (
float, default0.0)
- minSignalFitLinearityTurnoff#
Minimum signal to compute raw linearity slope for linearityTurnoff. (
float, default1000.0)
- nSigmaClipLinear#
Maximum deviation from linear solution for Poissonian noise. (
float, default5.0)
- polynomialOrder#
Degree of polynomial to fit. Must be at least 2. (
int, default3)Valid Range = [2,inf)
- saveLogOutput#
Flag to enable/disable saving of log output for a task, enabled by default. (
bool, defaultTrue)
- splineFitMaxIter#
Maximum number of iterations for spline fit. (
int, default20)
- splineFitMaxRejectionPerIteration#
Maximum number of rejections per iteration for spline fit. (
int, default5)
- splineFitMinIter#
Minimum number of iterations for spline fit. (
int, default3)
- splineFitTemperatureColumn#
Name of the temperature column to use when fitting temperature coefficients in spline fit; this must not be None if doSplineFitTemperature is True. (
str, defaultNone)
- splineFitWeightParsStart#
Starting parameters for weight fit, if doSplineFitWeights=True. Parameters are such that sigma = sqrt(par[0]**2. + par[1]**2./mu).If doSplineFitWeights=False then these are used as-is; otherwise they are used as the initial values for fitting these parameters. (
List, default[1.0, 0.0])
- splineGroupingColumn#
Column to use for grouping together points for Spline mode, to allow for different proportionality constants. If None, then grouping will only be done if doAutoGrouping is True. (
str, defaultNone)
- splineGroupingMinPoints#
Minimum number of linearity points to allow grouping together points for Spline mode with splineGroupingColumn. This configuration is here to prevent misuse of the Spline code to avoid over-fitting. (
int, default100)
- splineKnots#
Number of spline knots to use in fit. (
int, default10)
- trimmedState#
Will this linearizer be used on trimmed data? (
bool, defaultTrue)
- useFocalPlaneNormalization#
Use focal-plane normalization in addition to/instead of photodiode? (Only used with spline fitting). (
bool, defaultFalse)
- useLinearizerPtc#
Use a linearizer ptc in a single pipeline? (
bool, defaultFalse)
- usePhotodiode#
Use the photodiode info instead of the raw expTimes? (
bool, defaultFalse)
Methods Documentation
- validate()#
Validate the Config, raising an exception if invalid.
Raises#
- lsst.pex.config.FieldValidationError
Raised if verification fails.
Notes#
The base class implementation performs type checks on all fields by calling their
validatemethods.Complex single-field validation can be defined by deriving new Field types. For convenience, some derived
lsst.pex.config.Field-types (ConfigFieldandConfigChoiceField) are defined inlsst.pex.configthat handle recursing into subconfigs.Inter-field relationships should only be checked in derived
Configclasses after calling this method, and base validation is complete.