From b06dd187ec52f3b2ff05c624095cfb142ddb3602 Mon Sep 17 00:00:00 2001 From: Richard Bowman Date: Mon, 15 Feb 2021 20:18:34 +0000 Subject: [PATCH] Fixed args in endpoints --- .../picamera_autocalibrate/extension.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/openflexure_microscope/api/default_extensions/picamera_autocalibrate/extension.py b/openflexure_microscope/api/default_extensions/picamera_autocalibrate/extension.py index bdb0022b..28f51352 100644 --- a/openflexure_microscope/api/default_extensions/picamera_autocalibrate/extension.py +++ b/openflexure_microscope/api/default_extensions/picamera_autocalibrate/extension.py @@ -106,9 +106,7 @@ def find_picamera() -> Tuple[PiCamera, BaseCamera, Microscope]: class RecalibrateView(ActionView): - args = {} - - def post(self, args): + def post(self): """Reset the camera's settings. This generates new gains, exposure time, and lens shading @@ -135,9 +133,7 @@ class RecalibrateView(ActionView): microscope.save_settings() class AutoLensShadingTableView(ActionView): - args = {} - - def post(self, args): + def post(self): """Perform flat-field correction This routine acquires a new image (which should be an