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