summaryrefslogtreecommitdiff
path: root/lib/pelt.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pelt.py')
-rw-r--r--lib/pelt.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pelt.py b/lib/pelt.py
index 8966d56..a215b28 100644
--- a/lib/pelt.py
+++ b/lib/pelt.py
@@ -87,8 +87,9 @@ class PELT:
# long as --pelt isn't active.
import ruptures
- if self.num_samples is not None:
+ if self.num_samples is not None and len(signal) > self.num_samples:
self.jump = len(signal) // int(self.num_samples)
+ print(f"jump = {self.jump}")
else:
self.jump = 1