Constrain¶
- class paintbox.Constrain(sed)[source] [edit on github]¶
Bases:
paintbox.sed.PaintboxBaseConstrain parameters of an SED model.
The combination of SED models may result in models with repeated parameters at different locations of the parnames list. This class allows the simplification of the input model by finding and constraining all instances of repeated parameters to the same value.
- Attributes
- parnames: list
The new parnames list is a concatenation of the input SED models, simplified in relation to the input model.
- wave: numpy.ndarray, astropy.quantities.Quantity
Wavelength array.
Methods
__call__(theta)
Returns the SED model according the parameters given in theta.
Methods Summary
__call__(theta)Calculates the constrained model.
gradient(theta)Methods Documentation
- __call__(theta)[source] [edit on github]¶
Calculates the constrained model.
- gradient(theta)[source] [edit on github]¶