Removed test schema
This commit is contained in:
parent
456ca7d13d
commit
9911b33621
1 changed files with 0 additions and 29 deletions
|
|
@ -7,33 +7,6 @@ import logging
|
||||||
|
|
||||||
from .recalibrate_utils import recalibrate_camera, auto_expose_and_freeze_settings
|
from .recalibrate_utils import recalibrate_camera, auto_expose_and_freeze_settings
|
||||||
|
|
||||||
API_SCHEMA = {
|
|
||||||
'icon': 'lifesaver',
|
|
||||||
'requireConnection': True,
|
|
||||||
'forms': [
|
|
||||||
{
|
|
||||||
'route': '/recalibrate',
|
|
||||||
'schema': [
|
|
||||||
{
|
|
||||||
'fieldType': "htmlBlock",
|
|
||||||
'name': "heading",
|
|
||||||
'content': "<b>This plugin was generated from JSON!</b><p>In fact, I'm typing this HTML block into my Python plugin right now."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'fieldType': "radioList",
|
|
||||||
'name': "coolness",
|
|
||||||
'label': "How cool is that!?",
|
|
||||||
'options': ["Very", "Very very", "I'm losing my mind"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'fieldType': "htmlBlock",
|
|
||||||
'name': "subheading",
|
|
||||||
'content': "I should apologise to the auto-calibrate plugin though. I'm using that as a test-bed..."
|
|
||||||
},
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
class RecalibrateAPIView(MicroscopeViewPlugin):
|
class RecalibrateAPIView(MicroscopeViewPlugin):
|
||||||
def post(self):
|
def post(self):
|
||||||
|
|
@ -53,8 +26,6 @@ class Plugin(MicroscopePlugin):
|
||||||
'/recalibrate': RecalibrateAPIView,
|
'/recalibrate': RecalibrateAPIView,
|
||||||
}
|
}
|
||||||
|
|
||||||
api_schema = API_SCHEMA
|
|
||||||
|
|
||||||
def recalibrate(self):
|
def recalibrate(self):
|
||||||
"""Reset the camera's settings.
|
"""Reset the camera's settings.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue