LSST Applications g00274db5b6+edbf708997,g00d0e8bbd7+edbf708997,g199a45376c+5137f08352,g1fd858c14a+1d4b6db739,g262e1987ae+f4d9505c4f,g29ae962dfc+7156fb1a53,g2cef7863aa+73c82f25e4,g35bb328faa+edbf708997,g3e17d7035e+5b3adc59f5,g3fd5ace14f+852fa6fbcb,g47891489e3+6dc8069a4c,g53246c7159+edbf708997,g64539dfbff+9f17e571f4,g67b6fd64d1+6dc8069a4c,g74acd417e5+ae494d68d9,g786e29fd12+af89c03590,g7ae74a0b1c+a25e60b391,g7aefaa3e3d+536efcc10a,g7cc15d900a+d121454f8d,g87389fa792+a4172ec7da,g89139ef638+6dc8069a4c,g8d7436a09f+28c28d8d6d,g8ea07a8fe4+db21c37724,g92c671f44c+9f17e571f4,g98df359435+b2e6376b13,g99af87f6a8+b0f4ad7b8d,gac66b60396+966efe6077,gb88ae4c679+7dec8f19df,gbaa8f7a6c5+38b34f4976,gbf99507273+edbf708997,gc24b5d6ed1+9f17e571f4,gca7fc764a6+6dc8069a4c,gcc769fe2a4+97d0256649,gd7ef33dd92+6dc8069a4c,gdab6d2f7ff+ae494d68d9,gdbb4c4dda9+9f17e571f4,ge410e46f29+6dc8069a4c,geaed405ab2+e194be0d2b,w.2025.47
LSST Data Management Base Package
Loading...
Searching...
No Matches
lsst.pex.config.config.ConfigMeta Class Reference
Inheritance diagram for lsst.pex.config.config.ConfigMeta:
lsst.pex.config.config.Config lsst.afw.geom.transformConfig.AffineTransformConfig lsst.afw.geom.transformConfig.IdentityTransformConfig lsst.afw.geom.transformConfig.MultiTransformConfig lsst.afw.geom.transformConfig.OneTransformConfig lsst.afw.geom.transformConfig.RadialTransformConfig lsst.afw.geom.transformConfig.TransformConfig lsst.afw.math._chebyshevBoundedFieldConfig.ChebyshevBoundedFieldConfig lsst.dax.apdb.legacy_config.ApdbConfig lsst.fgcmcal.sedterms.Sedboundaryterm lsst.fgcmcal.sedterms.SedboundarytermDict lsst.fgcmcal.sedterms.Sedterm lsst.fgcmcal.sedterms.SedtermDict lsst.ip.diffim.subtractImages.AlardLuptonSubtractBaseConfig lsst.ip.isr.ampOffset.AmpOffsetConfig lsst.ip.isr.crosstalk.CrosstalkConfig lsst.ip.isr.deferredCharge.DeferredChargeConfig lsst.ip.isr.fringe.FringeConfig lsst.ip.isr.fringe.FringeStatisticsConfig lsst.ip.isr.masking.MaskingConfig lsst.ip.isr.straylight.StrayLightConfig lsst.ip.isr.vignette.VignetteConfig lsst.meas.algorithms.adaptive_thresholds.AdaptiveThresholdDetectionConfig lsst.meas.algorithms.cloughTocher2DInterpolator.CloughTocher2DInterpolateConfig lsst.meas.algorithms.computeExPsf.ComputeExPsfConfig lsst.meas.algorithms.findGlintTrails.FindGlintTrailsConfig lsst.meas.algorithms.gaussianPsfFactory.GaussianPsfFactory lsst.meas.algorithms.indexerRegistry.HtmIndexerConfig lsst.meas.algorithms.measureApCorr.MeasureApCorrConfig lsst.meas.algorithms.noise_covariance.ComputeNoiseCorrelationConfig lsst.meas.algorithms.normalizedCalibrationFlux.NormalizedCalibrationFluxConfig lsst.meas.algorithms.reserveSourcesTask.ReserveSourcesConfig lsst.meas.algorithms.scaleVariance.ScaleVarianceConfig lsst.meas.algorithms.setPrimaryFlags.SetPrimaryFlagsConfig lsst.meas.algorithms.skyObjects.SkyObjectsConfig lsst.meas.algorithms.treecorrUtils.TreecorrConfig lsst.meas.astrom.directMatch.DirectMatchConfigWithoutLoader lsst.meas.astrom.fitSipDistortion.FitSipDistortionConfig lsst.meas.base._id_generator.BaseIdGeneratorConfig lsst.meas.base.applyApCorr.ApplyApCorrConfig lsst.meas.base.baseMeasurement.SimpleBaseMeasurementConfig lsst.meas.base.baseMeasurement.SourceSlotConfig lsst.meas.base.catalogCalculation.CatalogCalculationConfig lsst.meas.base.noiseReplacer.NoiseReplacerConfig lsst.meas.base.pluginsBase.BasePluginConfig lsst.meas.modelfit.psf.psfContinued.GeneralShapeletPsfApproxConfig lsst.pex.config.configChoiceField.ConfigInstanceDict lsst.pex.config.configDictField.ConfigDict lsst.pex.config.configurableActions._configurableAction.ConfigurableAction lsst.pex.config.configurableActions.tests.TestConfig lsst.pipe.tasks.background.BackgroundConfig lsst.pipe.tasks.background.FocalPlaneBackgroundConfig lsst.pipe.tasks.background.MaskObjectsConfig lsst.pipe.tasks.background.SkyMeasurementConfig lsst.pipe.tasks.background.SkyStatsConfig lsst.pipe.tasks.colorterms.Colorterm lsst.pipe.tasks.colorterms.ColortermDict lsst.pipe.tasks.colorterms.ColortermLibrary lsst.pipe.tasks.diffractionSpikeMask.DiffractionSpikeMaskConfig lsst.pipe.tasks.extended_psf.DetectorsInRegion lsst.pipe.tasks.extended_psf.StackBrightStarsConfig lsst.pipe.tasks.matchBackgrounds.ChooseReferenceVisitConfig lsst.pipe.tasks.measurementDriver.MeasurementDriverBaseConfig lsst.pipe.tasks.multiBandUtils.CullPeaksConfig lsst.pipe.tasks.registerImage.RegisterConfig lsst.pipe.tasks.tractBackground.TractBackgroundConfig lsst.skymap.packers.SkyMapDimensionPackerConfig

Public Member Functions

 __init__ (cls, name, bases, dict_)
 
 __setattr__ (cls, name, value)
 

Protected Attributes

dict _fields = {}
 
 _source = getStackFrame()
 

Detailed Description

A metaclass for `lsst.pex.config.Config`.

Parameters
----------
name : `str`
    Name to use for class.
bases : `~collections.abc.Iterable`
    Base classes.
dict_ : `dict`
    Additional parameters.

Notes
-----
``ConfigMeta`` adds a dictionary containing all `~lsst.pex.config.Field`
class attributes as a class attribute called ``_fields``, and adds
the name of each field as an instance variable of the field itself (so you
don't have to pass the name of the field to the field constructor).

Definition at line 206 of file config.py.

Constructor & Destructor Documentation

◆ __init__()

lsst.pex.config.config.ConfigMeta.__init__ ( cls,
name,
bases,
dict_ )

Definition at line 226 of file config.py.

226 def __init__(cls, name, bases, dict_):
227 type.__init__(cls, name, bases, dict_)
228 cls._fields = {}
229 cls._source = getStackFrame()
230
231 def getFields(classtype):
232 fields = {}
233 bases = list(classtype.__bases__)
234 bases.reverse()
235 for b in bases:
236 fields.update(getFields(b))
237
238 for k, v in classtype.__dict__.items():
239 if isinstance(v, Field):
240 fields[k] = v
241 return fields
242
243 fields = getFields(cls)
244 for k, v in fields.items():
245 setattr(cls, k, copy.deepcopy(v))
246

Member Function Documentation

◆ __setattr__()

lsst.pex.config.config.ConfigMeta.__setattr__ ( cls,
name,
value )

Definition at line 247 of file config.py.

247 def __setattr__(cls, name, value):
248 if isinstance(value, Field):
249 value.name = name
250 cls._fields[name] = value
251 type.__setattr__(cls, name, value)
252
253

Member Data Documentation

◆ _fields

dict lsst.pex.config.config.ConfigMeta._fields = {}
protected

Definition at line 228 of file config.py.

◆ _source

lsst.pex.config.config.ConfigMeta._source = getStackFrame()
protected

Definition at line 229 of file config.py.


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