Boulder-Investment-Technologies / lppls

Library for fitting the LPPLS model to data.
MIT License
356 stars 111 forks source link

Divide by zero encountered in double_scalars #89

Open Djangu-algo opened 1 year ago

Djangu-algo commented 1 year ago

The following error is encountered from time to time, but does not seem to affect the computation of indicators

lib/python3.10/site-packages/lppls/lppls.py:640: RuntimeWarning: divide by zero encountered in double_scalars return (m np.abs(b)) / (w np.abs(c))

Djangu-algo commented 1 year ago

The exact line 640 may not be correct, since some additional functions were added to the code