You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a big bug on the master code of FATS. with some light curves the StructureFunction_index_21 never ends. I attached a test case with the examples of a lightcurve from a VVV that make the feature fail. And also a screenshoot of my process monitor when i run the script
I suspect the error is a bad use of the numpy.trim_zero function. This functions only remove the leading and trailing zeros but with this light curve are some zeros in between
$ python test_StructureFunction_index_21.py
/test_FATS/local/lib/python2.7/site-packages/statsmodels/compat/pandas.py:56: FutureWarning: The pandas.core.datetools module is deprecated and will be removed in a future version. Please use the pandas.tseries module instead.
from pandas.core import datetools
/test_FATS/local/lib/python2.7/site-packages/FATS/FeatureFunctionLib.py:1404: RuntimeWarning: divide by zero encountered in log10
sf1_log = np.log10(np.trim_zeros(sf1))
/test_FATS/local/lib/python2.7/site-packages/FATS/FeatureFunctionLib.py:1405: RuntimeWarning: divide by zero encountered in log10
sf2_log = np.log10(np.trim_zeros(sf2))
/test_FATS/local/lib/python2.7/site-packages/FATS/FeatureFunctionLib.py:1406: RuntimeWarning: divide by zero encountered in log10
sf3_log = np.log10(np.trim_zeros(sf3))
/test_FATS/local/lib/python2.7/site-packages/numpy/lib/polynomial.py:584: RuntimeWarning: invalid value encountered in true_divide
lhs /= scale
I found a big bug on the master code of FATS. with some light curves the StructureFunction_index_21 never ends. I attached a test case with the examples of a lightcurve from a VVV that make the feature fail. And also a screenshoot of my process monitor when i run the script
I suspect the error is a bad use of the
numpy.trim_zero
function. This functions only remove the leading and trailing zeros but with this light curve are some zeros in betweenTest Case: https://gist.github.com/leliel12/a3ee1c0de5a7f2cf72100c99c220f05c
The text was updated successfully, but these errors were encountered: