From 33b4dbf23226a443986973e35182178902db5b58 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 29 Oct 2020 09:31:53 +0100 Subject: --pelt: print number of detected changepoints --- bin/dlog-viewer | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bin') 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() -- cgit v1.2.3