Moved plugins up one level and added new view plugins

This commit is contained in:
Joel Collins 2018-12-12 14:58:55 +00:00
parent ac5f26ef6b
commit bde2e9de2a
7 changed files with 53 additions and 36 deletions

View file

@ -0,0 +1 @@
from .plugin import FirstPlugin

View file

@ -0,0 +1,14 @@
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