keenerd / rtl-sdr-misc

A bucket of various work-in-progress rtl-sdr ideas.
211 stars 173 forks source link

Deprication Warning #30

Open abcd567a opened 3 months ago

abcd567a commented 3 months ago

When heatmap.py is run on Bookworm, there are some deprecation warnings, but it still works:

./heatmap.py scan.csv scan.png

loading
x: 4576, y: 60, z: (-35.890000, 2.820000)
drawing
labeling
/home/pi/./heatmap.py:470: DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox or getlength instead.
  s = f.getsize(label)
/home/pi/./heatmap.py:475: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use LANCZOS or Resampling.LANCZOS instead.
  return w_img.resize((s[0]//3, s[1]//3), Image.ANTIALIAS)
saving
by commented 3 months ago

Pls. see https://github.com/keenerd/rtl-sdr-misc/pulls