summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-10-29 09:31:53 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2020-10-29 09:31:53 +0100
commit33b4dbf23226a443986973e35182178902db5b58 (patch)
tree460da902903d222158faeba8c590b4798b6b55c4 /bin
parent42e394922300eb6a2c870ca43f725debe8cbd53a (diff)
--pelt: print number of detected changepoints
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dlog-viewer6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/dlog-viewer b/bin/dlog-viewer
index f564168..24c6d37 100755
--- a/bin/dlog-viewer
+++ b/bin/dlog-viewer
@@ -523,6 +523,12 @@ def main():
if args.pelt:
changepoints = detect_changepoints(dlog, num_samples=args.pelt)
+ for i, slot in enumerate(changepoints):
+ for unit in slot:
+ num_changepoints = len(slot[unit])
+ print(
+ f"Found {num_changepoints} changepoints for {dlog.slots[i][unit].smu} {unit}"
+ )
if args.json_export:
extra_data = dict()