SumOfCoefficientsPrior._check#

SumOfCoefficientsPrior._check()[source]#

Reject a non-positive tightness.

Called by dummy_observations(), the only method whose output depends on the field; the moment methods return constants and do not call it.

Raises:

SpecificationError – If tightness is not positive.

Example

>>> SumOfCoefficientsPrior(tightness=0.0)._check()
Traceback (most recent call last):
    ...
cultivars.exceptions.SpecificationError: tightness must be positive; got 0.0.
Return type:

None