From 312637fa724d907aa86607736bfdfcab1c6ed758 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sun, 31 Dec 2023 11:30:54 +0200 Subject: [PATCH] add missing test2.py --- test2.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 test2.py diff --git a/test2.py b/test2.py new file mode 100755 index 0000000..90c575b --- /dev/null +++ b/test2.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python3 +from pathlib import Path +from thermaldecoder import decode +import numpy as np +import matplotlib.pyplot as plt +root = Path('f2') +root.mkdir(exist_ok=True) +frames = decode('heatbed90_hotend_200_ice0.pcapng') +f = next(frames) +f = next(frames) +f = np.array(f) +f.shape = (384, 288) +plt.imshow(f) +plt.show()