Removed imports and variable to pass Ruff linting

This commit is contained in:
jaknapper 2025-04-08 19:07:23 +01:00
parent 574aa1c6c0
commit 9c2ab977c5

View file

@ -13,8 +13,6 @@ import time
from PIL import Image
from pydantic import BaseModel
from scipy.stats import norm
from scipy.ndimage import zoom
from scipy.interpolate import interp1d
from datetime import datetime
from subprocess import CompletedProcess, Popen, PIPE, SubprocessError, STDOUT
from threading import Event, Thread
@ -623,7 +621,7 @@ class SmartScanThing(Thing):
def save_capture(name, image, metadata):
try:
jpeg_path = os.path.join(images_folder, name)
PIL_image = Image.fromarray(image.astype("uint8"), "RGB").save(
Image.fromarray(image.astype("uint8"), "RGB").save(
jpeg_path, quality=95, subsampling=0
)
try: