CompoundSED¶
- class paintbox.CompoundSED(o1, o2, op)[source] [edit on github]¶
Bases:
paintbox.sed.PaintboxBaseCombination of SED models.
The CompoundSED class allows the combination of any number of SED model components using addition and / or multiplication, as long as the input classes have the same wavelength dispersion. It can be accessed directly, but the recommended way is to use model operators.
- Attributes
- parnames: list
The new parnames list is a concatenation of the input SED models.
- wave: numpy.ndarray, astropy.quantities.Quantity
Wavelength array.
- Parameters
- o1, o2: SED model components
Input SED models to be combined either by multiplication or addition.
- op: str
Operation of the combination, either “+” or “*”.
Attributes Summary
List with names of the parameters of the model.
Methods Summary
__call__(theta)SED model for combined components at point theta.
Constrain the parameters with the same name to have the same value during calling.
fix(fixed_vals)Fix a set of parameters in parnames using a dictionary.
gradient(theta)Gradient of the combined SED model at point theta.
plot(theta[, ax, plottype])Plot the model for a given set of parameters.
Attributes Documentation
- parnames¶
List with names of the parameters of the model.
Methods Documentation
- __call__(theta)[source] [edit on github]¶
SED model for combined components at point theta.
- constrain_duplicates() [edit on github]¶
Constrain the parameters with the same name to have the same value during calling.
- fix(fixed_vals) [edit on github]¶
Fix a set of parameters in parnames using a dictionary.
- gradient(theta)[source] [edit on github]¶
Gradient of the combined SED model at point theta.
- plot(theta, ax=None, plottype=None, **kwargs) [edit on github]¶
Plot the model for a given set of parameters.