diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2020-10-29 09:30:50 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2020-10-29 09:30:50 +0100 |
commit | 05cd19da95c0a132074feddcaf388ee3efd2f8b4 (patch) | |
tree | b396fb517eb7e31bf872046403ae8892cc45b3b6 /bin | |
parent | ffed53f80fc9cd6441496a16b58bc627bb24b270 (diff) |
--pelt: print number of detceted changepoints
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/msp430-etv | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/msp430-etv b/bin/msp430-etv index 51c9013..5116855 100755 --- a/bin/msp430-etv +++ b/bin/msp430-etv @@ -485,11 +485,13 @@ def main(): power_changepoints = detect_changepoints( data[1:, 0] * 1e-6, power_from_energy, num_samples=args.pelt ) + print(f"Found {len(power_changepoints)} changepoints for power") current_changepoints = detect_changepoints( data[1:, 0] * 1e-6, power_from_energy / (data[1:, 2] * 1e-3), num_samples=args.pelt, ) + print(f"Found {len(current_changepoints)} changepoints for current") if args.stat: mean_voltage = np.mean(data[:, 2] * 1e-3) |