Formatting
This commit is contained in:
parent
5119e2c544
commit
6644819352
11 changed files with 16 additions and 14 deletions
|
|
@ -24,8 +24,8 @@ import pkg_resources
|
||||||
from flask import abort, send_file
|
from flask import abort, send_file
|
||||||
from flask_cors import CORS, cross_origin
|
from flask_cors import CORS, cross_origin
|
||||||
from labthings import create_app
|
from labthings import create_app
|
||||||
from labthings.views import View
|
|
||||||
from labthings.extensions import find_extensions
|
from labthings.extensions import find_extensions
|
||||||
|
from labthings.views import View
|
||||||
|
|
||||||
from openflexure_microscope.api.microscope import default_microscope as api_microscope
|
from openflexure_microscope.api.microscope import default_microscope as api_microscope
|
||||||
from openflexure_microscope.api.utilities import init_default_extensions, list_routes
|
from openflexure_microscope.api.utilities import init_default_extensions, list_routes
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from flask import abort
|
from flask import abort
|
||||||
from labthings import find_component, fields
|
from labthings import fields, find_component
|
||||||
from labthings.marshalling import use_args
|
from labthings.marshalling import use_args
|
||||||
from labthings.utilities import create_from_path, get_by_path, set_by_path
|
from labthings.utilities import create_from_path, get_by_path, set_by_path
|
||||||
from labthings.views import PropertyView, View
|
from labthings.views import PropertyView, View
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
import io
|
||||||
import logging
|
import logging
|
||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
import io
|
|
||||||
from abc import ABCMeta, abstractmethod
|
from abc import ABCMeta, abstractmethod
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
from . import capture, capture_manager
|
from . import capture, capture_manager
|
||||||
from .capture import CaptureObject, THUMBNAIL_SIZE
|
from .capture import THUMBNAIL_SIZE, CaptureObject
|
||||||
from .capture_manager import CaptureManager
|
from .capture_manager import CaptureManager
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,9 @@ import logging
|
||||||
import os
|
import os
|
||||||
import uuid
|
import uuid
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
from PIL import Image
|
|
||||||
|
|
||||||
import dateutil.parser
|
import dateutil.parser
|
||||||
|
from PIL import Image
|
||||||
|
|
||||||
from openflexure_microscope.captures import piexif
|
from openflexure_microscope.captures import piexif
|
||||||
from openflexure_microscope.captures.piexif import InvalidImageDataError
|
from openflexure_microscope.captures.piexif import InvalidImageDataError
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import pkg_resources
|
||||||
from expiringdict import ExpiringDict
|
from expiringdict import ExpiringDict
|
||||||
|
|
||||||
from openflexure_microscope.camera.mock import MissingCamera
|
from openflexure_microscope.camera.mock import MissingCamera
|
||||||
from openflexure_microscope.captures import CaptureManager, THUMBNAIL_SIZE
|
from openflexure_microscope.captures import THUMBNAIL_SIZE, CaptureManager
|
||||||
from openflexure_microscope.stage.mock import MissingStage
|
from openflexure_microscope.stage.mock import MissingStage
|
||||||
from openflexure_microscope.stage.sanga import SangaDeltaStage, SangaStage
|
from openflexure_microscope.stage.sanga import SangaDeltaStage, SangaStage
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,9 @@
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import platform
|
import platform
|
||||||
import pkg_resources
|
import sys
|
||||||
|
|
||||||
from .error_sources import bcolors
|
import pkg_resources
|
||||||
|
|
||||||
from openflexure_microscope.paths import (
|
from openflexure_microscope.paths import (
|
||||||
FALLBACK_OPENFLEXURE_VAR_PATH,
|
FALLBACK_OPENFLEXURE_VAR_PATH,
|
||||||
|
|
@ -13,11 +12,12 @@ from openflexure_microscope.paths import (
|
||||||
|
|
||||||
from . import (
|
from . import (
|
||||||
check_capture_reload,
|
check_capture_reload,
|
||||||
check_settings,
|
|
||||||
check_picamera,
|
check_picamera,
|
||||||
check_sangaboard,
|
check_sangaboard,
|
||||||
|
check_settings,
|
||||||
check_system,
|
check_system,
|
||||||
)
|
)
|
||||||
|
from .error_sources import bcolors
|
||||||
|
|
||||||
# Paths for suggestions
|
# Paths for suggestions
|
||||||
LOGS_PATHS = [
|
LOGS_PATHS = [
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from openflexure_microscope.captures.capture import (
|
from openflexure_microscope.captures.capture import (
|
||||||
|
EXIF_FORMATS,
|
||||||
build_captures_from_exif,
|
build_captures_from_exif,
|
||||||
make_file_list,
|
make_file_list,
|
||||||
EXIF_FORMATS,
|
|
||||||
)
|
)
|
||||||
from openflexure_microscope.captures.capture_manager import BASE_CAPTURE_PATH
|
from openflexure_microscope.captures.capture_manager import BASE_CAPTURE_PATH
|
||||||
from openflexure_microscope.config import user_settings
|
from openflexure_microscope.config import user_settings
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
from .error_sources import ErrorSource
|
|
||||||
|
|
||||||
from openflexure_microscope.config import user_configuration
|
from openflexure_microscope.config import user_configuration
|
||||||
|
|
||||||
|
from .error_sources import ErrorSource
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
error_sources = []
|
error_sources = []
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from .error_sources import ErrorSource
|
from .error_sources import ErrorSource
|
||||||
|
|
||||||
ERROR_SOURCES = []
|
ERROR_SOURCES = []
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
from urllib.request import urlopen
|
|
||||||
from urllib.error import URLError
|
from urllib.error import URLError
|
||||||
|
from urllib.request import urlopen
|
||||||
|
|
||||||
import psutil
|
import psutil
|
||||||
|
|
||||||
from .error_sources import WarningSource
|
from .error_sources import WarningSource
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue