Commit 9911b336 authored by Joel Collins's avatar Joel Collins
Browse files

Removed test schema

parent 456ca7d1
Loading
Loading
Loading
Loading
+0 −29
Original line number Diff line number Diff line
@@ -7,33 +7,6 @@ import logging

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):
    def post(self):
@@ -53,8 +26,6 @@ class Plugin(MicroscopePlugin):
        '/recalibrate': RecalibrateAPIView,
    }

    api_schema = API_SCHEMA

    def recalibrate(self):
        """Reset the camera's settings.