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
As I understand, the predict of the ruptures.detection.Window class will fail if the number of samples in the signal is lower than 1.5 x the width parameters of the __init__ method.
Python will raise the following error
~/Documents/env/lib/python3.6/site-packages/ruptures/detection/window.py in _seg(self, n_bkps, pen, epsilon)
177 peak_inds_arr = np.take(self.inds, peak_inds_shifted)
178 # sort according to score value
--> 179 _, peak_inds = unzip(sorted(zip(gains, peak_inds_arr)))
180 peak_inds = list(peak_inds)
181
ValueError: not enough values to unpack (expected 2, got 0)
which is a bit ambiguous.
Did I miss something in the documentation ? Or a slight improvement in error management is feasible ?
The text was updated successfully, but these errors were encountered:
As I understand, the
predict
of theruptures.detection.Window
class will fail if the number of samples in the signal is lower than 1.5 x thewidth
parameters of the__init__
method.Python will raise the following error
which is a bit ambiguous.
Did I miss something in the documentation ? Or a slight improvement in error management is feasible ?
The text was updated successfully, but these errors were encountered: