linkedin / luminol

Anomaly Detection and Correlation library
Apache License 2.0
1.19k stars 217 forks source link

Example 1 Put anomaly scores in a list is giving error #10

Closed ashish-r closed 4 years ago

ashish-r commented 7 years ago

getting ValueError: (22, 'Invalid argument') in line: t_str = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(timestamp))

actually, the error is due to value of timestamp provided as argument in time.localtime(timestamp)

using SAR-device.sdb.await.csv provided in luminol/demo/src/static/data/.

Using Python 2.7. Please Help.

brennv commented 7 years ago

The example is missing import time. The example is a bit clearer without the time conversion: #30