Moved to collision-robust device name
This commit is contained in:
parent
cf19939379
commit
8a282db12b
9 changed files with 28 additions and 28 deletions
|
|
@ -290,7 +290,7 @@ def fast_up_down_up_autofocus(
|
|||
|
||||
class MeasureSharpnessAPI(Resource):
|
||||
def post(self):
|
||||
microscope = find_device("openflexure_microscope")
|
||||
microscope = find_device("org.openflexure.microscope")
|
||||
|
||||
if not microscope:
|
||||
abort(503, "No microscope connected. Unable to measure sharpness.")
|
||||
|
|
@ -305,7 +305,7 @@ class AutofocusAPI(Resource):
|
|||
|
||||
def post(self):
|
||||
payload = JsonResponse(request)
|
||||
microscope = find_device("openflexure_microscope")
|
||||
microscope = find_device("org.openflexure.microscope")
|
||||
|
||||
if not microscope:
|
||||
abort(503, "No microscope connected. Unable to autofocus.")
|
||||
|
|
@ -331,7 +331,7 @@ class FastAutofocusAPI(Resource):
|
|||
|
||||
def post(self):
|
||||
payload = JsonResponse(request)
|
||||
microscope = find_device("openflexure_microscope")
|
||||
microscope = find_device("org.openflexure.microscope")
|
||||
|
||||
if not microscope:
|
||||
abort(503, "No microscope connected. Unable to autofocus.")
|
||||
|
|
|
|||
|
|
@ -359,7 +359,7 @@ class TileScanAPI(Resource):
|
|||
)
|
||||
@marshal_task
|
||||
def post(self, args):
|
||||
microscope = find_device("openflexure_microscope")
|
||||
microscope = find_device("org.openflexure.microscope")
|
||||
|
||||
if not microscope:
|
||||
abort(503, "No microscope connected. Unable to autofocus.")
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ class ZipBuilderAPIView(Resource):
|
|||
def post(self):
|
||||
|
||||
ids = list(JsonResponse(request).json)
|
||||
microscope = find_device("openflexure_microscope")
|
||||
microscope = find_device("org.openflexure.microscope")
|
||||
|
||||
task = taskify(default_zip_manager.build_zip_from_capture_ids)(microscope, ids)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue