diff --git a/lppls/lppls.py b/lppls/lppls.py index c46668a..1410133 100644 --- a/lppls/lppls.py +++ b/lppls/lppls.py @@ -614,7 +614,7 @@ def _is_D_in_range(self, m, w, b, c, D_min): return False if m <= 0 or w <= 0 else abs((m * b) / (w * c)) > D_min def get_oscillations(self, w, tc, t1, t2): - dt = np.abs(tc - t2) + dt = np.abs(tc - t2) + 1e-8 return (w / (2.0 * np.pi)) * np.log((tc - t1) / dt) def get_damping(self, m, w, b, c): diff --git a/setup.py b/setup.py index 733c525..ef134dd 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ long_description = fh.read() setuptools.setup(name='lppls', - version='0.6.14', + version='0.6.15', description='A Python module for fitting the LPPLS model to data.', packages=['lppls'], author='Josh Nielsen',