Fixed AutocalibrationPlugin plugin name
This commit is contained in:
parent
52fb130379
commit
a17bf7283c
4 changed files with 5 additions and 5 deletions
|
|
@ -9,6 +9,6 @@
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"openflexure_microscope.plugins.default.autofocus:AutofocusPlugin",
|
"openflexure_microscope.plugins.default.autofocus:AutofocusPlugin",
|
||||||
"openflexure_microscope.plugins.default.scan:ScanPlugin",
|
"openflexure_microscope.plugins.default.scan:ScanPlugin",
|
||||||
"openflexure_microscope.plugins.default.camera_calibration:Plugin"
|
"openflexure_microscope.plugins.default.camera_calibration:AutocalibrationPlugin"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
__all__ = ["Plugin"]
|
__all__ = ["Plugin"]
|
||||||
from .plugin import Plugin
|
from .plugin import AutocalibrationPlugin
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,9 @@ class RecalibrateAPIView(MicroscopeViewPlugin):
|
||||||
return jsonify(task.state), 201
|
return jsonify(task.state), 201
|
||||||
|
|
||||||
|
|
||||||
class Plugin(MicroscopePlugin):
|
class AutocalibrationPlugin(MicroscopePlugin):
|
||||||
"""
|
"""
|
||||||
A set of default plugins
|
Auto-calibration plugin
|
||||||
"""
|
"""
|
||||||
|
|
||||||
api_views = {"/recalibrate": RecalibrateAPIView}
|
api_views = {"/recalibrate": RecalibrateAPIView}
|
||||||
|
|
|
||||||
|
|
@ -204,7 +204,7 @@ class PluginLoader(object):
|
||||||
# Store the plugin object, and it's properties
|
# Store the plugin object, and it's properties
|
||||||
self._plugins.append(plugin_object)
|
self._plugins.append(plugin_object)
|
||||||
# DEPRECATED: Store the plugin with it's old name
|
# DEPRECATED: Store the plugin with it's old name
|
||||||
self._legacy_plugins[plugin_name_python_safe] = plugin_object
|
self._legacy_plugins[plugin_name] = plugin_object
|
||||||
|
|
||||||
# Grant plugin access to the hardware
|
# Grant plugin access to the hardware
|
||||||
if isinstance(plugin_object, MicroscopePlugin):
|
if isinstance(plugin_object, MicroscopePlugin):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue