EllipticalComponentConfig#
- class lsst.multiprofit.EllipticalComponentConfig(*args, **kw)#
Bases:
ShapePriorConfigConfiguration for an elliptically-symmetric component.
This class can be initialized but cannot implement make_component.
Attributes Summary
Flux parameter(s) config (
FluxParameterConfig, default<class 'lsst.multiprofit.componentconfig.FluxParameterConfig'>)Fractional flux parameter(s) config (
FluxFractionParameterConfig, default<class 'lsst.multiprofit.componentconfig.FluxFractionParameterConfig'>)Prior mean for axis ratio (prior ignored if not >0) (
float, default0.7)Prior std.
Prior mean for size_major (
float, default1)Prior std.
Rho parameter config (
ParameterConfig, default<class 'lsst.multiprofit.componentconfig.ParameterConfig'>)x-axis size parameter config (
ParameterConfig, default<class 'lsst.multiprofit.componentconfig.ParameterConfig'>)y-axis size parameter config (
ParameterConfig, default<class 'lsst.multiprofit.componentconfig.ParameterConfig'>)The name of the reference transform for flux parameters (
str, default'log10')The name of the reference transform for flux fraction parameters (
str, default'logit_fluxfrac')The name of the reference transform for rho parameters (
str, default'logit_rho')The name of the reference transform for size parameters (
str, default'log10')Methods Summary
format_label(label, name_channel)Format a label for a band-dependent parameter.
Return the default integral label.
Return the label for the component's size parameters.
Return a descriptive component name.
make_component(centroid, integral_model)Make a Component reflecting the current configuration.
make_flux_parameter(value[, label])Make a single IntegralParameterD from this object's configuration.
make_fluxfrac_parameter(value[, label])Make a GaussianParametericEllipse from this object's configuration.
make_linear_integral_model(fluxes[, ...])Make an lsst.gauss2d.fit.LinearIntegralModel for this component.
set_rho(component, rho)Set the rho parameter value for a component.
set_size_x(component, size_x)Set the x-axis size parameter value for a component.
set_size_y(component, size_y)Set the y-axis size parameter value for a component.
Attributes Documentation
- flux#
Flux parameter(s) config (
FluxParameterConfig, default<class 'lsst.multiprofit.componentconfig.FluxParameterConfig'>)
- fluxfrac#
Fractional flux parameter(s) config (
FluxFractionParameterConfig, default<class 'lsst.multiprofit.componentconfig.FluxFractionParameterConfig'>)
- prior_axrat_mean#
Prior mean for axis ratio (prior ignored if not >0) (
float, default0.7)
- prior_axrat_stddev#
Prior std. dev. on axis ratio (
float, default0)
- prior_size_mean#
Prior mean for size_major (
float, default1)
- prior_size_stddev#
Prior std. dev. on size_major (prior ignored if not >0) (
float, default0)
- rho#
Rho parameter config (
ParameterConfig, default<class 'lsst.multiprofit.componentconfig.ParameterConfig'>)
- size_x#
x-axis size parameter config (
ParameterConfig, default<class 'lsst.multiprofit.componentconfig.ParameterConfig'>)
- size_y#
y-axis size parameter config (
ParameterConfig, default<class 'lsst.multiprofit.componentconfig.ParameterConfig'>)
- transform_flux_name#
The name of the reference transform for flux parameters (
str, default'log10')
- transform_fluxfrac_name#
The name of the reference transform for flux fraction parameters (
str, default'logit_fluxfrac')
- transform_rho_name#
The name of the reference transform for rho parameters (
str, default'logit_rho')
- transform_size_name#
The name of the reference transform for size parameters (
str, default'log10')
Methods Documentation
- format_label(label: str, name_channel: str) str#
Format a label for a band-dependent parameter.
Parameters#
- label
The label to format.
- name_channel
The name of the channel to format with.
Returns#
- label_formmated
The formatted label.
- static get_integral_label_default() str#
Return the default integral label.
- abstract get_size_label() str#
Return the label for the component’s size parameters.
- get_transform_flux() TransformD | None#
- get_transform_fluxfrac() TransformD | None#
- get_transform_rho() TransformD | None#
- get_transform_size() TransformD | None#
- abstract get_type_name() str#
Return a descriptive component name.
- abstract make_component(centroid: CentroidParameters, integral_model: IntegralModel) ComponentData#
Make a Component reflecting the current configuration.
Parameters#
- centroid
Centroid parameters for the component.
- integral_model
The integral_model for this component.
Returns#
- component_data
An appropriate ComponentData including the initialized component.
Notes#
The default
gauss2d.fit.LinearIntegralModelcan be populated with unit fluxes (gauss2d.fit.IntegralParameterDinstances) to prepare for linear least squares fitting.
- make_flux_parameter(value: float | None, label: str | None = None, **kwargs: Any) IntegralParameterD#
Make a single IntegralParameterD from this object’s configuration.
Parameters#
- value
The initial value. Default is self.flux.value_initial.
- label
The label for the parameter. Default empty string.
- **kwargs
- Other keyword arguments to pass to the IntegralParameterD
constructor.
Returns#
- param
The constructed IntegralParameterD.
- make_fluxfrac_parameter(value: float | None, label: str | None = None, **kwargs: Any) ProperFractionParameterD#
- make_gaussianparametricellipse() GaussianParametricEllipse#
Make a GaussianParametericEllipse from this object’s configuration.
Returns#
- ellipse
The configured ellipse.
- make_linear_integral_model(fluxes: dict[Channel, float], label_integral: str | None = None, **kwargs: Any) IntegralModel#
Make an lsst.gauss2d.fit.LinearIntegralModel for this component.
Parameters#
- fluxes
Configurations, including initial values, for the flux parameters by channel.
- label_integral
A label to apply to integral parameters. Can reference the relevant channel with e.g. {channel.name}.
- **kwargs
Additional keyword arguments to pass to make_flux_parameter. Some parameters cannot be overriden from their configs.
Returns#
- integral_model
The requested lsst.gauss2d.fit.IntegralModel.
- static set_rho(component: EllipticalComponent, rho: float) None#
Set the rho parameter value for a component.
Parameters#
- component
The component to set the size for.
- rho
The value to set.
- static set_size_x(component: EllipticalComponent, size_x: float) None#
Set the x-axis size parameter value for a component.
Parameters#
- component
The component to set the size for.
- size_x
The value to set.
- static set_size_y(component: EllipticalComponent, size_y: float) None#
Set the y-axis size parameter value for a component.
Parameters#
- component
The component to set the size for.
- size_y
The value to set.