Blackened
This commit is contained in:
parent
36f195d6e7
commit
b430a2d34a
15 changed files with 72 additions and 54 deletions
|
|
@ -11,6 +11,7 @@ from openflexure_microscope.api.views import MicroscopeView
|
|||
|
||||
from . import camera, stage, system
|
||||
|
||||
|
||||
class ActionsAPI(MicroscopeView):
|
||||
def get(self):
|
||||
return jsonify(actions_representation())
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ class CaptureAPI(MicroscopeView):
|
|||
"""
|
||||
Create a new image capture.
|
||||
"""
|
||||
|
||||
def post(self):
|
||||
"""
|
||||
Create a new image capture.
|
||||
|
|
@ -107,6 +108,7 @@ class GPUPreviewStartAPI(MicroscopeView):
|
|||
"""
|
||||
Start the onboard GPU preview.
|
||||
"""
|
||||
|
||||
def post(self, operation):
|
||||
"""
|
||||
Start the onboard GPU preview.
|
||||
|
|
@ -152,6 +154,7 @@ class GPUPreviewStopAPI(MicroscopeView):
|
|||
"""
|
||||
Stop the onboard GPU preview.
|
||||
"""
|
||||
|
||||
def post(self, operation):
|
||||
"""
|
||||
Stop the onboard GPU preview.
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ class MoveStageAPI(MicroscopeView):
|
|||
"""
|
||||
Handle stage movements.
|
||||
"""
|
||||
|
||||
def post(self):
|
||||
"""
|
||||
Set x, y and z positions of the stage.
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ class ShutdownAPI(MicroscopeView):
|
|||
"""
|
||||
Attempt to shutdown the device
|
||||
"""
|
||||
|
||||
def post(self):
|
||||
"""
|
||||
Attempt to shutdown the device
|
||||
|
|
@ -23,6 +24,7 @@ class RebootAPI(MicroscopeView):
|
|||
"""
|
||||
Attempt to reboot the device
|
||||
"""
|
||||
|
||||
def post(self):
|
||||
"""
|
||||
Attempt to shutdown the device
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue