CalcZernikesNeuralTaskConfig#
- class lsst.ts.wep.task.CalcZernikesNeuralTaskConfig(*args, **kw)#
Bases:
CalcZernikesTaskConfigConfiguration for CalcZernikesNeuralTask.
- wavenetPath#
Model weights path for wavenet. If None, TARTS will create a new model with random weights (useful for testing).
- Type:
str or None
- alignetPath#
Model weights path for alignet. If None, TARTS will create a new model with random weights (useful for testing).
- Type:
str or None
- aggregatornetPath#
Model weights path for aggregatornet. If None, TARTS will create a new model with random weights (useful for testing).
- Type:
str or None
- oodModelPath#
Directory path for the OOD model to be used by TARTS for out-of- distribution detection. If None, OOD checks are disabled.
- Type:
str or None
- datasetParamPath#
Path to TARTS dataset parameters YAML file containing normalization scaling factors, image processing parameters (CROP_SIZE, deg_per_pix, mm_pix), model hyperparameters, and training data file paths.
- Type:
- device#
Device to use for calculations. Options: ‘cpu’ for CPU computation, ‘cuda’ for GPU computation (default). Any value other than ‘cpu’ will use CUDA.
- Type:
- nollIndices#
List of Noll indices to calculate. Default is Z4-Z22 (4-22), excluding piston (Z1), tip (Z2), and tilt (Z3) which are typically not measured in wavefront sensing. Values must be unique, ascending, at least 4, and include complete azimuthal pairs (same rules as
EstimateZernikesBaseTask; enforced bycheckNollIndicesat task initialization).
- cropSize#
Size of donut crop in pixels (width and height). Default is 160 pixels, which matches the TARTS neural network training data format.
- Type:
- intraDfcDist#
Defocal distance for intra-focal images in mm. Negative value indicates inward defocus. Default is -1.5 mm.
- Type:
- extraDfcDist#
Defocal distance for extra-focal images in mm. Positive value indicates outward defocus. Default is 1.5 mm.
- Type:
Attributes Summary
Model Weights Path for aggregatornet (
str, defaultNone)Model Weights Path for alignet (
str, defaultNone)Choice of task to combine the Zernikes from pairs of donuts into a single value for the detector.
Field which refers to a dynamically added configuration class which is based on a PipelineTaskConnections class.
Size of donut crop in pixels (width and height).
Path to TARTS dataset parameters YAML file containing normalization scaling factors, image processing parameters (CROP_SIZE, deg_per_pix, mm_pix), model hyperparameters, and training data file paths (
str)'cpu' for CPU computation, 'cuda' for GPU computation (default).
Remove donuts with outlier donut blur fwhm fromfinal averages.
Whether or not to run donut stamp selector.If this is False, then we do not get donutQualityTable.(The default is True).
How to select donut stamps.
Choice of task to estimate Zernikes from pairs of donuts.
Defocal distance for extra-focal images in mm.
Defocal distance for intra-focal images in mm.
List of Noll indices to calculate.
Directory path for OOD model used by TARTS (optional) (
str, defaultNone)Flag to enable/disable saving of log output for a task, enabled by default.
Model Weights Path for wavenet (
str, defaultNone)Attributes Documentation
- combineZernikes: pexConfig.ConfigurableField#
Choice of task to combine the Zernikes from pairs of donuts into a single value for the detector. (The default is CombineZernikesSigmaClipTask.) (
ConfigurableInstance, default<class 'lsst.ts.wep.task.combineZernikesSigmaClipTask.CombineZernikesSigmaClipTaskConfig'>)
- connections: pexConfig.ConfigField#
Field which refers to a dynamically added configuration class which is based on a PipelineTaskConnections class.
-
cropSize:
Field# Size of donut crop in pixels (width and height). Default is 160 pixels, which matches the TARTS neural network training data format. (
int, default160)
-
datasetParamPath:
Field# Path to TARTS dataset parameters YAML file containing normalization scaling factors, image processing parameters (CROP_SIZE, deg_per_pix, mm_pix), model hyperparameters, and training data file paths (
str)
-
device:
Field# ‘cpu’ for CPU computation, ‘cuda’ for GPU computation (default). Any value other than ‘cpu’ will use CUDA. (
str, default'cuda')- Type:
Device to use for calculations. Options
- doBlurClip: pexConfig.Field#
Remove donuts with outlier donut blur fwhm fromfinal averages. (
bool, defaultTrue)
- doDonutStampSelector: pexConfig.Field#
Whether or not to run donut stamp selector.If this is False, then we do not get donutQualityTable.(The default is True). It is also possible to rundonut stamp selector (with this config set to True), butturn off doSelection config inside the donut stamp selector,which would return all donuts as selected, as well asreturning a quality table. (
bool, defaultTrue)
- donutStampSelector: pexConfig.ConfigurableField#
How to select donut stamps. (
ConfigurableInstance, default<class 'lsst.ts.wep.task.donutStampSelectorTask.DonutStampSelectorTaskConfig'>)
- estimateZernikes: pexConfig.ConfigurableField#
Choice of task to estimate Zernikes from pairs of donuts. (the default is EstimateZernikesTieTask) (
ConfigurableInstance, default<class 'lsst.ts.wep.task.estimateZernikesDanishTask.EstimateZernikesDanishConfig'>)
-
extraDfcDist:
Field# Defocal distance for extra-focal images in mm. Positive value indicates outward defocus. (
float, default1.5)
-
intraDfcDist:
Field# Defocal distance for intra-focal images in mm. Negative value indicates inward defocus. (
float, default-1.5)
-
nollIndices:
Field# List of Noll indices to calculate. Default is Z4-Z22 (4-22), excluding piston (Z1), tip (Z2), and tilt (Z3) which are typically not measured in wavefront sensing. Indices must be unique, ascending, >= 4, and include complete azimuthal pairs (see
checkNollIndicesin zernikeUtils). (List, default[4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22])