LSST Applications g1cfbe01172+01aa18f939,g20cdd03214+31e6b93548,g28da252d5a+ea8665a95b,g2bbee38e9b+9ec6cc348d,g2bc492864f+9ec6cc348d,g347aa1857d+9ec6cc348d,g3a166c0a6a+9ec6cc348d,g4322eb9e3a+65eff1e020,g461a3dce89+b86e4b8053,g50ff169b8f+f991eae79d,g52b1c1532d+b86e4b8053,g607f77f49a+31e6b93548,g78056777b3+8ae2798781,g858d7b2824+31e6b93548,g8cd86fa7b1+4851e61ca4,g9ddcbc5298+f24b38b85a,ga1e77700b3+3309dba821,gae0086650b+b86e4b8053,gb0e22166c9+6076c0b52b,gbb886bcc26+dccb771098,gbd462c55f0+dc07f8e65d,gc0c51c7ec2+31e6b93548,gc120e1dc64+a417ce3171,gc28159a63d+9ec6cc348d,gc2a6998b7e+f95f64aeae,gcdd4ae20e8+507450c4cd,gcf0d15dbbd+507450c4cd,gd1535ee943+bcf88ba65f,gd598c5cd71+66126f91fb,gdaeeff99f8+006e14e809,gdbce86181e+39d5515b1a,ge3d4d395c2+b12d4d6a95,ge79ae78c31+9ec6cc348d,gf048a9a2f4+d9c36e6b63,gfbcc870c63+ea41c4420b,w.2024.27
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
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.apdb.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.cloughTocher2DInterpolator.CloughTocher2DInterpolateConfig 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.astrom.directMatch.DirectMatchConfigWithoutLoader lsst.meas.astrom.fitSipDistortion.FitSipDistortionConfig lsst.meas.base._id_generator.BaseIdGeneratorConfig lsst.meas.base.applyApCorr.ApplyApCorrConfig lsst.meas.base.baseMeasurement.BaseMeasurementConfig 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.extended_psf.DetectorsInRegion lsst.pipe.tasks.extended_psf.StackBrightStarsConfig lsst.pipe.tasks.multiBandUtils.CullPeaksConfig lsst.pipe.tasks.propagateVisitFlags.PropagateVisitFlagsConfig lsst.pipe.tasks.registerImage.RegisterConfig lsst.skymap.packers.SkyMapDimensionPackerConfig

Public Member Functions

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

Protected Attributes

 _fields
 
 _source
 

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 204 of file config.py.

Constructor & Destructor Documentation

◆ __init__()

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

Reimplemented in lsst.pex.config.configChoiceField.ConfigInstanceDict, lsst.pex.config.registry.RegistryInstanceDict, lsst.pex.config.configDictField.ConfigDict, lsst.pex.config.registry.RegistryField, and lsst.pex.config.configChoiceField.ConfigChoiceField.

Definition at line 224 of file config.py.

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

Member Function Documentation

◆ __setattr__()

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

Reimplemented in lsst.pex.config.registry.RegistryInstanceDict, lsst.pex.config.config.Config, lsst.pex.config.configChoiceField.ConfigInstanceDict, and lsst.pex.config.configurableActions._configurableAction.ConfigurableAction.

Definition at line 245 of file config.py.

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

Member Data Documentation

◆ _fields

lsst.pex.config.config.ConfigMeta._fields
protected

Definition at line 226 of file config.py.

◆ _source

lsst.pex.config.config.ConfigMeta._source
protected

Definition at line 227 of file config.py.


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