Moved plugins up one level and added new view plugins
This commit is contained in:
parent
ac5f26ef6b
commit
bde2e9de2a
7 changed files with 53 additions and 36 deletions
|
|
@ -1,19 +0,0 @@
|
|||
from openflexure_microscope.plugins import MicroscopePlugin
|
||||
|
||||
|
||||
class FirstPlugin(MicroscopePlugin):
|
||||
"""
|
||||
An example Microscope plugin.
|
||||
"""
|
||||
def run(self):
|
||||
"""
|
||||
Demonstrate access to Microscope.camera, and Microscope.stage
|
||||
"""
|
||||
|
||||
response = "My parent camera is {}, and my parent stage is {}.".format(self.microscope.camera, self.microscope.stage)
|
||||
return response
|
||||
|
||||
|
||||
PLUGINS = {
|
||||
'test1': FirstPlugin,
|
||||
} #: dict: Dictionary describing the plugins. Keys are the names of the plugin's namescape, with a value corresponding to the class of that plugin.
|
||||
Loading…
Add table
Add a link
Reference in a new issue