Rename jpeg_array to highres_array

This commit is contained in:
jaknapper 2025-05-01 15:00:16 +01:00 committed by Julian Stirling
parent 132efa8033
commit 9d1385231d
3 changed files with 5 additions and 5 deletions

View file

@ -316,7 +316,7 @@ class AutofocusThing(Thing):
capture.capture_jpeg(filename=jpeg_path, cam=cam) capture.capture_jpeg(filename=jpeg_path, cam=cam)
elif capture_method == "hires_array": elif capture_method == "hires_array":
# A new way to get the full array # A new way to get the full array
img = capture.capture_jpeg_array() img = capture.capture_highres_array()
_save_capture( _save_capture(
jpeg_path, jpeg_path,
img, img,

View file

@ -77,7 +77,7 @@ class CameraProtocol(Protocol):
"""Acquire one image from the preview stream and return its size""" """Acquire one image from the preview stream and return its size"""
... ...
def capture_jpeg_array( def capture_highres_array(
self, self,
): ):
... ...
@ -176,7 +176,7 @@ class CameraStub(BaseCamera):
raise NotImplementedError("Cameras must not inherit from CameraStub") raise NotImplementedError("Cameras must not inherit from CameraStub")
@thing_action @thing_action
def capture_jpeg_array( def capture_highres_array(
self, self,
): ):
raise NotImplementedError("Cameras must not inherit from CameraStub") raise NotImplementedError("Cameras must not inherit from CameraStub")

View file

@ -55,9 +55,9 @@ class CaptureThing(Thing):
jpeg.save(filename) jpeg.save(filename)
@thing_action @thing_action
def capture_jpeg_array(self, cam: CamDep): def capture_highres_array(self, cam: CamDep):
"""Return a full resolution stream array""" """Return a full resolution stream array"""
return cam.capture_jpeg_array() return cam.capture_highres_array()
@thing_action @thing_action
def _capture_array(self, cam: CamDep, metadata_getter: GetThingStates): def _capture_array(self, cam: CamDep, metadata_getter: GetThingStates):