Updated default extensions to subclass structure
This commit is contained in:
parent
bacc111a87
commit
8d0759e9e0
8 changed files with 300 additions and 305 deletions
|
|
@ -2,6 +2,8 @@ import logging
|
|||
import traceback
|
||||
from contextlib import contextmanager
|
||||
|
||||
LABTHINGS_EXTENSIONS = []
|
||||
|
||||
|
||||
@contextmanager
|
||||
def handle_extension_error(extension_name):
|
||||
|
|
@ -17,14 +19,28 @@ def handle_extension_error(extension_name):
|
|||
|
||||
|
||||
with handle_extension_error("autofocus"):
|
||||
from .autofocus import autofocus_extension_v2
|
||||
from .autofocus import AutofocusExtension
|
||||
|
||||
LABTHINGS_EXTENSIONS.append(AutofocusExtension)
|
||||
with handle_extension_error("scan"):
|
||||
from .scan import scan_extension_v2
|
||||
from .scan import ScanExtension
|
||||
|
||||
LABTHINGS_EXTENSIONS.append(ScanExtension)
|
||||
with handle_extension_error("zip builder"):
|
||||
from .zip_builder import zip_extension_v2
|
||||
from .zip_builder import ZipBuilderExtension
|
||||
|
||||
LABTHINGS_EXTENSIONS.append(ZipBuilderExtension)
|
||||
with handle_extension_error("autostorage"):
|
||||
from .autostorage import autostorage_extension_v2
|
||||
from .autostorage import AutostorageExtension
|
||||
|
||||
LABTHINGS_EXTENSIONS.append(AutostorageExtension)
|
||||
|
||||
with handle_extension_error("lens shading calibration"):
|
||||
from .picamera_autocalibrate import LSTExtension
|
||||
|
||||
LABTHINGS_EXTENSIONS.append(LSTExtension)
|
||||
|
||||
with handle_extension_error("camera stage mapping"):
|
||||
from camera_stage_mapping.ofm_extension import csm_extension
|
||||
with handle_extension_error("lens shading calibration"):
|
||||
from .picamera_autocalibrate import lst_extension_v2
|
||||
|
||||
LABTHINGS_EXTENSIONS.append(csm_extension)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue