eradiate.spectral.QuadSpec#
- class eradiate.spectral.QuadSpec[source]#
Bases:
objectAbstract 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
QuadSpecinstance. 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
typeentry, whose value maps to a give quadrature specification subtype as follows:fixed:QuadSpecFixedminimize_error:QuadSpecMinErrorerror_threshold:QuadSpecErrorThreshold