add missing test2.py
This commit is contained in:
parent
6af9b21be1
commit
312637fa72
14
test2.py
Executable file
14
test2.py
Executable file
|
@ -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()
|
Loading…
Reference in New Issue
Block a user