eradiate.spectral.QuadSpec#
- class eradiate.spectral.QuadSpec[source]#
Bases:
object
Abstract base class for all quadrature specification patterns.
Each subclass defines a strategy used to generate a spectral quadrature corresponding to a CKD dataset and must implement the strategy in the
make_quad()
.- classmethod convert(value)[source]#
Attempt conversion to a
QuadSpec
instance. If value is a dictionary, it is passed tofrom_dict()
; otherwise, it is left unchanged.
- static from_dict(value)[source]#
Create a quadrature specification subtype from a dictionary. The dictionary must have a
type
entry, whose value maps to a give quadrature specification subtype as follows:fixed
:QuadSpecFixed
minimize_error
:QuadSpecMinError
error_threshold
:QuadSpecErrorThreshold