Commit 33b4dbf2 authored by Daniel Friesel's avatar Daniel Friesel
Browse files

--pelt: print number of detected changepoints

parent 42e39492
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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()