shapelets / khiva

An open-source library of algorithms to analyse time series in GPU and CPU.
https://khiva.readthedocs.io/
Mozilla Public License 2.0
228 stars 30 forks source link

Features::localMaximals() function bug #97

Closed Nexxel closed 4 years ago

Nexxel commented 5 years ago

Describe the bug That function produces a OSError tested in Python: Traceback (most recent call last): File "", line 1, in File "C:\Python37\lib\site-packages\khiva\features.py", line 607, in local_maximals ctypes.pointer(b)) OSError: [WinError -529697949] Windows Error 0xe06d7363

To Reproduce import khiva as kv import numpy as np local_maximals_result = kv.local_maximals(kv.Array(data=[0.0, 4.0, 3.0, 5.0, 4.0, 1.0, 0.0, 4.0])).to_numpy()

Expected behavior numpy array of [0.0, 1.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0] Environment information:

raulbocanegra commented 4 years ago

Fixed on #153