fixed a couple of trivial typos
This commit is contained in:
parent
1eda70045c
commit
b048ece777
2 changed files with 6 additions and 6 deletions
|
|
@ -4,7 +4,7 @@ Basic extension structure
|
|||
An extension starts as a simple instance of :py:class:`labthings.server.extensions.BaseExtension`.
|
||||
Each extension is described by a single ``BaseExtension`` instance, containing any number of methods, API views, and additional hardware components.
|
||||
|
||||
In order to access the currently running microscope object, use the :py:func:`labthings.server.find` function, with the argument ``"org.openflexure.microscope"``. Likewise, any new components attached by other extensions can be found using their full name, as above.
|
||||
In order to access the currently running microscope object, use the :py:func:`labthings.server.find.find_component` function, with the argument ``"org.openflexure.microscope"``. Likewise, any new components attached by other extensions can be found using their full name, as above.
|
||||
|
||||
A simple extension file, with no API views but application-available methods may look like:
|
||||
|
||||
|
|
@ -23,4 +23,4 @@ Once this extension is loaded, any other extensions will have access to your met
|
|||
|
||||
# Call a function from your extension
|
||||
if my_found_extension:
|
||||
my_found_extension.identify()
|
||||
my_found_extension.identify()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue