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 numpy as np
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from openflexure_microscope.api.v1.views import MicroscopeViewPlugin
|
from openflexure_microscope.devel import MicroscopeViewPlugin, JsonPayload, request, jsonify
|
||||||
from openflexure_microscope.api.utilities import JsonPayload
|
|
||||||
|
|
||||||
from flask import request, jsonify
|
|
||||||
|
|
||||||
|
|
||||||
class MeasureSharpnessAPI(MicroscopeViewPlugin):
|
class MeasureSharpnessAPI(MicroscopeViewPlugin):
|
||||||
def post(self):
|
def post(self):
|
||||||
|
|
|
||||||
|
|
@ -3,12 +3,12 @@ import logging
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
|
|
||||||
from openflexure_microscope.plugins import MicroscopePlugin
|
|
||||||
from openflexure_microscope.utilities import set_properties
|
from openflexure_microscope.utilities import set_properties
|
||||||
|
|
||||||
from .focus_utils import sharpness_sum_lap2, JPEGSharpnessMonitor
|
from .focus_utils import sharpness_sum_lap2, JPEGSharpnessMonitor
|
||||||
from .api import MeasureSharpnessAPI, AutofocusAPI, FastAutofocusAPI
|
from .api import MeasureSharpnessAPI, AutofocusAPI, FastAutofocusAPI
|
||||||
|
|
||||||
|
from openflexure_microscope.devel import MicroscopePlugin
|
||||||
|
|
||||||
class AutofocusPlugin(MicroscopePlugin):
|
class AutofocusPlugin(MicroscopePlugin):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,5 @@
|
||||||
from openflexure_microscope.plugins import MicroscopePlugin
|
from openflexure_microscope.devel import MicroscopePlugin, MicroscopeViewPlugin, JsonPayload, request, jsonify
|
||||||
from openflexure_microscope.api.v1.views import MicroscopeViewPlugin
|
|
||||||
from openflexure_microscope.api.utilities import JsonPayload
|
|
||||||
|
|
||||||
from flask import request, jsonify
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from .recalibrate_utils import recalibrate_camera, auto_expose_and_freeze_settings
|
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.devel import MicroscopeViewPlugin, JsonPayload, request, jsonify, abort
|
||||||
from openflexure_microscope.api.utilities import JsonPayload
|
|
||||||
|
|
||||||
from flask import request, jsonify, abort
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
class TileScanAPI(MicroscopeViewPlugin):
|
class TileScanAPI(MicroscopeViewPlugin):
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,8 @@ import itertools
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from openflexure_microscope.camera.base import generate_basename
|
from openflexure_microscope.camera.base import generate_basename
|
||||||
from openflexure_microscope.plugins import MicroscopePlugin
|
|
||||||
|
from openflexure_microscope.devel import MicroscopePlugin
|
||||||
|
|
||||||
from .api import TileScanAPI
|
from .api import TileScanAPI
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,5 @@
|
||||||
from openflexure_microscope.api.utilities import JsonPayload
|
from openflexure_microscope.devel import MicroscopeViewPlugin, TaskDeniedException, JsonPayload, Response, request, escape, jsonify
|
||||||
from openflexure_microscope.api.v1.views import MicroscopeViewPlugin
|
|
||||||
from openflexure_microscope.exceptions import TaskDeniedException
|
|
||||||
|
|
||||||
from flask import request, Response, escape, jsonify
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
class DoAPI(MicroscopeViewPlugin):
|
class DoAPI(MicroscopeViewPlugin):
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import random
|
||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
from openflexure_microscope.plugins import MicroscopePlugin
|
from openflexure_microscope.devel import MicroscopePlugin
|
||||||
|
|
||||||
from .api import DoAPI, TaskAPI
|
from .api import DoAPI, TaskAPI
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue