Converted to use new convenience imports
This commit is contained in:
parent
317afeb76a
commit
90e8bd6558
7 changed files with 8 additions and 19 deletions
|
|
@ -1,11 +1,7 @@
|
|||
import numpy as np
|
||||
import logging
|
||||
|
||||
from openflexure_microscope.api.v1.views import MicroscopeViewPlugin
|
||||
from openflexure_microscope.api.utilities import JsonPayload
|
||||
|
||||
from flask import request, jsonify
|
||||
|
||||
from openflexure_microscope.devel import MicroscopeViewPlugin, JsonPayload, request, jsonify
|
||||
|
||||
class MeasureSharpnessAPI(MicroscopeViewPlugin):
|
||||
def post(self):
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@ import logging
|
|||
import numpy as np
|
||||
from contextlib import contextmanager
|
||||
|
||||
from openflexure_microscope.plugins import MicroscopePlugin
|
||||
from openflexure_microscope.utilities import set_properties
|
||||
|
||||
from .focus_utils import sharpness_sum_lap2, JPEGSharpnessMonitor
|
||||
from .api import MeasureSharpnessAPI, AutofocusAPI, FastAutofocusAPI
|
||||
|
||||
from openflexure_microscope.devel import MicroscopePlugin
|
||||
|
||||
class AutofocusPlugin(MicroscopePlugin):
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
from openflexure_microscope.plugins import MicroscopePlugin
|
||||
from openflexure_microscope.api.v1.views import MicroscopeViewPlugin
|
||||
from openflexure_microscope.api.utilities import JsonPayload
|
||||
from openflexure_microscope.devel import MicroscopePlugin, MicroscopeViewPlugin, JsonPayload, request, jsonify
|
||||
|
||||
from flask import request, jsonify
|
||||
import logging
|
||||
|
||||
from .recalibrate_utils import recalibrate_camera, auto_expose_and_freeze_settings
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
from openflexure_microscope.api.v1.views import MicroscopeViewPlugin
|
||||
from openflexure_microscope.api.utilities import JsonPayload
|
||||
from openflexure_microscope.devel import MicroscopeViewPlugin, JsonPayload, request, jsonify, abort
|
||||
|
||||
from flask import request, jsonify, abort
|
||||
import logging
|
||||
|
||||
class TileScanAPI(MicroscopeViewPlugin):
|
||||
|
|
|
|||
|
|
@ -6,7 +6,8 @@ import itertools
|
|||
import logging
|
||||
|
||||
from openflexure_microscope.camera.base import generate_basename
|
||||
from openflexure_microscope.plugins import MicroscopePlugin
|
||||
|
||||
from openflexure_microscope.devel import MicroscopePlugin
|
||||
|
||||
from .api import TileScanAPI
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
from openflexure_microscope.api.utilities import JsonPayload
|
||||
from openflexure_microscope.api.v1.views import MicroscopeViewPlugin
|
||||
from openflexure_microscope.exceptions import TaskDeniedException
|
||||
from openflexure_microscope.devel import MicroscopeViewPlugin, TaskDeniedException, JsonPayload, Response, request, escape, jsonify
|
||||
|
||||
from flask import request, Response, escape, jsonify
|
||||
import logging
|
||||
|
||||
class DoAPI(MicroscopeViewPlugin):
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import random
|
|||
import time
|
||||
import os
|
||||
import json
|
||||
from openflexure_microscope.plugins import MicroscopePlugin
|
||||
from openflexure_microscope.devel import MicroscopePlugin
|
||||
|
||||
from .api import DoAPI, TaskAPI
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue