SersicIndexParameterConfig#
- class lsst.multiprofit.SersicIndexParameterConfig(*args, **kw)#
Bases:
ParameterConfigConfiguration for an lsst.gauss2d.fit Sersic index parameter.
Attributes Summary
Whether parameter is fixed or not (free) (
bool, defaultFalse)Mean for the prior (untransformed) (
float, default1.0)Std.
Whether the prior should be in transformed values (
float, defaultTrue)Initial value (
float, default0)Methods Summary
make_prior(param)Make a Gaussian prior for a given SersicIndexParameterD.
Subclass hook for computing defaults.
validate()Validate the Config, raising an exception if invalid.
Attributes Documentation
- fixed#
Whether parameter is fixed or not (free) (
bool, defaultFalse)
- prior_mean#
Mean for the prior (untransformed) (
float, default1.0)
- prior_stddev#
Std. dev. for the prior (
float, default0.5)
- prior_transformed#
Whether the prior should be in transformed values (
float, defaultTrue)
- value_initial#
Initial value (
float, default0)
Methods Documentation
- make_prior(param: SersicIndexParameterD) Prior | None#
Make a Gaussian prior for a given SersicIndexParameterD.
Parameters#
- param
The parameter to make a prior for.
Returns#
- prior
The prior object, set according to the configuration, or none if the required config parameters are None.
- setDefaults() None#
Subclass hook for computing defaults.
Notes#
Derived
Configclasses that must compute defaults rather than using theFieldinstances’s defaults should do so here. To correctly use inherited defaults, implementations ofsetDefaultsmust call their base class’ssetDefaults.
- validate() None#
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.