Closed adamatw closed 9 years ago
There's currently a bug for data with daily granulraity. If gran == day, AnomalyDetectionTs does a check:
if(only_last == 'hr')
However, only_last can also be null. If it is, this check generates an error which keeps AnomalyDetectionTs from finishing:
Error in if (only_last == "hr") { : argument is of length zero
This patch fixes the check for only_last parameter when gran == day.
There's currently a bug for data with daily granulraity. If gran == day, AnomalyDetectionTs does a check:
if(only_last == 'hr')
However, only_last can also be null. If it is, this check generates an error which keeps AnomalyDetectionTs from finishing:
Error in if (only_last == "hr") { : argument is of length zero
This patch fixes the check for only_last parameter when gran == day.