mmfutils.testing
Testing utilities.
- mmfutils.testing.allclose(a, b, use_covariance=False, **kw)[source]
Return True if a and be are close.
Like np.allclose, but first tries a strict equality test, and also works for quantities with uncertainties.
- Parameters:
use_covariance (bool, float) – If True and parameters have uncertainties, then use their covariance information. Two parameters are considered equal in this case if their difference is zero to within the factor use_covariance times the std_dev of the difference. (If use_covariance is True, this is 1 standard deviation, but floats can be used.)