LinearityDoubleSplineSolveConfig#
- class lsst.cp.pipe.LinearityDoubleSplineSolveConfig(*args, **kw)#
Bases:
PipelineTaskConfigAttributes Summary
Sigma-clipping for absolute spline solution.
Maximum number of iterations for absolute spline fit.
Maximum number of rejections per iteration for absolute spline fit.
Minimum number of iterations for absolute 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.
Minimum size for low-level linearity nodes for absolute spline (adu).
Threshold for the low-level linearity nodes for absolute spline (adu).
Smallest node (above 0) for absolute spline (adu).
Minimum size for linearity nodes for absolute spline above absoluteSplineLowThreshold e(adu); note that there will always be a node at the reference PTC turnoff.
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.
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.
Do automatic group detection? Cannot be True if splineGroupingColumn is also set.
Column to use for grouping together points, to allow for different proportionality constants.
Maximum fraction deviation from raw linearity to compute linearityTurnoff and linearityMaxSignal.
Maximum read noise (e-) in the PTC for an amp to be considered as a reference.
Minimum value to trust photodiode signals.
Minimum signal to compute raw linearity slope for linearityTurnoff.
Sigma-clipping for relative spline solution.
Maximum number of iterations for relative spline fit.
Maximum number of rejections per iteration for relative spline fit.
Minimum number of iterations for relative spline fit.
Minimum size for high-level linearity nodes for relative spline (adu); this applies to counts between the PTC and linearity turnoffs.
Minimum size for low-level linearity nodes for relative spline (adu).
Threshold for the low-level linearity nodes for relative spline (adu).If this is below
relativeSplineMinimumSignalNodethen the low level checks will be skipped.Minimum size for mid-level linearity nodes for relative spline (adu); this applies to counts between relativeSplineLowThreshold and the PTC turnoff.
Smallest node (above 0) for relative spline (adu).
Number of target counts (adu) to select a reference image for relative spline solution.
Flag to enable/disable saving of log output for a task, enabled by default.
Use focal-plane normalization in addition to/instead of photodiode? (Only used with for absolute spline fitting).
Use the photodiode info instead of the raw expTimes? (
bool, defaultFalse)Methods Summary
validate()Validate the Config, raising an exception if invalid.
Attributes Documentation
- absoluteNSigmaClipLinear#
Sigma-clipping for absolute spline solution. (
float, default5.0)
- absoluteSplineFitMaxIter#
Maximum number of iterations for absolute spline fit. (
int, default20)
- absoluteSplineFitMaxRejectionPerIteration#
Maximum number of rejections per iteration for absolute spline fit. (
int, default5)
- absoluteSplineFitMinIter#
Minimum number of iterations for absolute spline fit. (
int, default3)
- absoluteSplineFitTemperatureColumn#
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)
- absoluteSplineFitWeightParsStart#
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])
- absoluteSplineLowNodeSize#
Minimum size for low-level linearity nodes for absolute spline (adu). (
float, default2000.0)
- absoluteSplineLowThreshold#
Threshold for the low-level linearity nodes for absolute spline (adu). If this is below
absoluteSplineMinimumSignalNodethen the low level checks will be skipped. (float, default0.0)
- absoluteSplineMinimumSignalNode#
Smallest node (above 0) for absolute spline (adu). (
float, default0.0)
- absoluteSplineNodeSize#
Minimum size for linearity nodes for absolute spline above absoluteSplineLowThreshold e(adu); note that there will always be a node at the reference PTC turnoff. (
float, default3000.0)
- 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.
- doAbsoluteSplineFitOffset#
Fit a scattered light offset in the spline fit. (
bool, defaultTrue)
- doAbsoluteSplineFitTemperature#
Fit temperature coefficient in spline fit? (
bool, defaultFalse)
- doAbsoluteSplineFitTemporal#
Fit a linear temporal parameter coefficient in spline fit? (
bool, defaultFalse)
- doAbsoluteSplineFitWeights#
Fit linearity weight parameters in the spline fit. (
bool, defaultFalse)
- 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)
- groupingColumn#
Column to use for grouping together points, to allow for different proportionality constants. If None, then grouping will only be done if doAutoGrouping is True. (
str, defaultNone)
- maxFracLinearityDeviation#
Maximum fraction deviation from raw linearity to compute linearityTurnoff and linearityMaxSignal. (
float, default0.01)
- maxNoiseReference#
Maximum read noise (e-) in the PTC for an amp to be considered as a reference. (
float, default12.0)
- minPhotodiodeCurrent#
Minimum value to trust photodiode signals. (
float, default0.0)
- minSignalFitLinearityTurnoff#
Minimum signal to compute raw linearity slope for linearityTurnoff. (
float, default1000.0)
- relativeNSigmaClipLinear#
Sigma-clipping for relative spline solution. (
float, default5.0)
- relativeSplineFitMaxIter#
Maximum number of iterations for relative spline fit. (
int, default20)
- relativeSplineFitMaxRejectionPerIteration#
Maximum number of rejections per iteration for relative spline fit. (
int, default5)
- relativeSplineFitMinIter#
Minimum number of iterations for relative spline fit. (
int, default3)
- relativeSplineHighNodeSize#
Minimum size for high-level linearity nodes for relative spline (adu); this applies to counts between the PTC and linearity turnoffs. (
float, default2000.0)
- relativeSplineLowNodeSize#
Minimum size for low-level linearity nodes for relative spline (adu). (
float, default750.0)
- relativeSplineLowThreshold#
Threshold for the low-level linearity nodes for relative spline (adu).If this is below
relativeSplineMinimumSignalNodethen the low level checks will be skipped. (float, default5000.0)
- relativeSplineMidNodeSize#
Minimum size for mid-level linearity nodes for relative spline (adu); this applies to counts between relativeSplineLowThreshold and the PTC turnoff. (
float, default5000.0)
- relativeSplineMinimumSignalNode#
Smallest node (above 0) for relative spline (adu). (
float, default100.0)
- relativeSplineReferenceCounts#
Number of target counts (adu) to select a reference image for relative spline solution. (
float, default10000.0)
- saveLogOutput#
Flag to enable/disable saving of log output for a task, enabled by default. (
bool, defaultTrue)
- useFocalPlaneNormalization#
Use focal-plane normalization in addition to/instead of photodiode? (Only used with for absolute spline fitting). (
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.