Blackened
This commit is contained in:
parent
ffc944fe99
commit
6df7fe9405
16 changed files with 22 additions and 64 deletions
|
|
@ -11,4 +11,4 @@ try:
|
|||
except Exception as e:
|
||||
logging.error(
|
||||
f"Exception loading builtin extension picamera_autocalibrate: \n{traceback.format_exc()}"
|
||||
)
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,10 +1,7 @@
|
|||
from labthings.server.find import find_component
|
||||
from labthings.server.extensions import BaseExtension
|
||||
from labthings.server.view import View
|
||||
from labthings.server.decorators import (
|
||||
ThingAction,
|
||||
ThingProperty,
|
||||
)
|
||||
from labthings.server.decorators import ThingAction, ThingProperty
|
||||
|
||||
from openflexure_microscope.devel import JsonResponse, request, jsonify, taskify, abort
|
||||
from openflexure_microscope.utilities import set_properties
|
||||
|
|
@ -359,7 +356,9 @@ class FastAutofocusAPI(View):
|
|||
abort(503, "No stage connected. Unable to autofocus.")
|
||||
|
||||
|
||||
autofocus_extension_v2 = BaseExtension("org.openflexure.autofocus", version="2.0.0-beta.1")
|
||||
autofocus_extension_v2 = BaseExtension(
|
||||
"org.openflexure.autofocus", version="2.0.0-beta.1"
|
||||
)
|
||||
|
||||
autofocus_extension_v2.add_method(fast_autofocus, "fast_autofocus")
|
||||
autofocus_extension_v2.add_method(autofocus, "autofocus")
|
||||
|
|
|
|||
|
|
@ -1,10 +1,7 @@
|
|||
from labthings.server.view import View
|
||||
from labthings.server.find import find_component
|
||||
from labthings.server.extensions import BaseExtension
|
||||
from labthings.server.decorators import (
|
||||
marshal_task,
|
||||
ThingAction,
|
||||
)
|
||||
from labthings.server.decorators import marshal_task, ThingAction
|
||||
|
||||
from labthings.core.tasks import taskify
|
||||
|
||||
|
|
|
|||
|
|
@ -5,16 +5,9 @@ from typing import Tuple
|
|||
from functools import reduce
|
||||
|
||||
from openflexure_microscope.camera.base import generate_basename
|
||||
from labthings.server.find import (
|
||||
find_component,
|
||||
find_extension,
|
||||
)
|
||||
from labthings.server.find import find_component, find_extension
|
||||
from labthings.server.extensions import BaseExtension
|
||||
from labthings.server.decorators import (
|
||||
marshal_task,
|
||||
use_args,
|
||||
ThingAction,
|
||||
)
|
||||
from labthings.server.decorators import marshal_task, use_args, ThingAction
|
||||
from labthings.server import fields
|
||||
|
||||
from openflexure_microscope.devel import taskify, abort, update_task_progress
|
||||
|
|
|
|||
|
|
@ -17,10 +17,7 @@ import logging
|
|||
from labthings.server.find import find_component
|
||||
from labthings.server.view import View
|
||||
from labthings.server.extensions import BaseExtension
|
||||
from labthings.server.decorators import (
|
||||
ThingAction,
|
||||
ThingProperty,
|
||||
)
|
||||
from labthings.server.decorators import ThingAction, ThingProperty
|
||||
|
||||
|
||||
class ZipManager:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue