Updated docs to include plugins

This commit is contained in:
Joel Collins 2018-11-23 17:34:20 +00:00
parent 2ef6395be2
commit 034a45e400
6 changed files with 21 additions and 3 deletions

View file

@ -7,6 +7,7 @@ Welcome to OpenFlexure Microscope Software's documentation!
microscope.rst microscope.rst
camera.rst camera.rst
plugins.rst
api.rst api.rst

View file

@ -5,5 +5,5 @@ Microscope class
:maxdepth: 2 :maxdepth: 2
:caption: Contents: :caption: Contents:
.. automodule:: openflexure_microscope.microscope .. automodule:: openflexure_microscope
:members: :members:

11
docs/source/plugins.rst Normal file
View file

@ -0,0 +1,11 @@
Plugin System
=============
.. automodule:: openflexure_microscope.plugins
:members:
Example Plugin
--------------
.. automodule:: openflexure_microscope.plugins.default.test_plugin
:members:

View file

@ -1,3 +1,4 @@
from .microscope import Microscope __all__ = ['Microscope']
__version__ = "0.1.0" __version__ = "0.1.0"
from .microscope import Microscope

View file

@ -1 +1,3 @@
__all__ = ['search_plugin_dirs', 'find_plugins', 'load_plugin', 'PluginMount', 'MicroscopePlugin']
from .loader import search_plugin_dirs, find_plugins, load_plugin, PluginMount, MicroscopePlugin from .loader import search_plugin_dirs, find_plugins, load_plugin, PluginMount, MicroscopePlugin

View file

@ -21,6 +21,9 @@ class OtherPlugin(MicroscopePlugin):
An example of a second Microscope plugin, loaded from the same plugin file. An example of a second Microscope plugin, loaded from the same plugin file.
""" """
def run(self): def run(self):
"""
Demonstrate access to Microscope.camera, and Microscope.stage
"""
print("Stage plugin parent stage:") print("Stage plugin parent stage:")
print(self.stage) print(self.stage)