19 lines
No EOL
602 B
Python
19 lines
No EOL
602 B
Python
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. |