Fixed argument 'missing' values
This commit is contained in:
parent
513f3cc057
commit
29ee73cedc
2 changed files with 6 additions and 6 deletions
|
|
@ -363,8 +363,8 @@ class FastAutofocusAPI(ActionView):
|
|||
Run a fast autofocus
|
||||
"""
|
||||
args = {
|
||||
"dz": fields.Int(default=2000),
|
||||
"backlash": fields.Int(default=25, minimum=0)
|
||||
"dz": fields.Int(missing=2000),
|
||||
"backlash": fields.Int(missing=25, minimum=0)
|
||||
}
|
||||
|
||||
def post(self, args):
|
||||
|
|
|
|||
|
|
@ -13,11 +13,11 @@ import logging
|
|||
class MoveStageAPI(ActionView):
|
||||
args = {
|
||||
"absolute": fields.Boolean(
|
||||
default=False, example=False, description="Move to an absolute position"
|
||||
missing=False, example=False, description="Move to an absolute position"
|
||||
),
|
||||
"x": fields.Int(default=0, example=100),
|
||||
"y": fields.Int(default=0, example=100),
|
||||
"z": fields.Int(default=0, example=20),
|
||||
"x": fields.Int(missing=0, example=100),
|
||||
"y": fields.Int(missing=0, example=100),
|
||||
"z": fields.Int(missing=0, example=20),
|
||||
}
|
||||
|
||||
def post(self, args):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue