eradiate.spectral.QuadSpecFixed#
- class eradiate.spectral.QuadSpecFixed(n, quad_type='gauss_legendre')[source]#
Bases:
QuadSpecFixed number of quadrature points [
fixed]Use a fixed number of quadrature points for all bins. If the quadrature is specified this way, the quadrature type has to be explicitly specified using the
typefield.- Parameters:
- Fields:
- classmethod convert(value)#
Attempt conversion to a
QuadSpecinstance. If value is a dictionary, it is passed tofrom_dict(); otherwise, it is left unchanged.
- static default()#
Return the default spectral quadrature (Gauss-Legendre, 16 g-points).
- classmethod from_dict(value)[source]#
Create a quadrature specification subtype from a dictionary. The dictionary must have a
typeentry, whose value maps to a give quadrature specification subtype as follows:fixed:QuadSpecFixedminimize_error:QuadSpecMinErrorerror_threshold:QuadSpecErrorThreshold