Closed tommedema closed 2 years ago
Reproducible code:
import warnings from bidask import edge # treat warnings as errors warnings.filterwarnings('error') edge( np.array([18.21, 17.61, 17.61]), np.array([18.21, 17.61, 17.61]), np.array([17.61, 17.61, 17.61]), np.array([17.61, 17.61, 17.61]) )
Thanks! This is fixed in the new version (just updated on PyPI). The function now returns nan when the variance is zero, as it should be.
nan
Reproducible code: