Loading openflexure_microscope/api/v1.py +1 −1 Original line number Diff line number Diff line Loading @@ -246,7 +246,7 @@ class PositionAPI(MicroscopeView): if not 'force' in state or state['force'] is False: # Allow for override # TODO: Make travel_limit a property of the stage or microscope # TODO: Make travel_limit a 3-axis list travel_limit = 2000 travel_limit = 20000 for axis, pos in enumerate(position): if abs(pos) > travel_limit: # Respond with 400 Bad Request Loading Loading
openflexure_microscope/api/v1.py +1 −1 Original line number Diff line number Diff line Loading @@ -246,7 +246,7 @@ class PositionAPI(MicroscopeView): if not 'force' in state or state['force'] is False: # Allow for override # TODO: Make travel_limit a property of the stage or microscope # TODO: Make travel_limit a 3-axis list travel_limit = 2000 travel_limit = 20000 for axis, pos in enumerate(position): if abs(pos) > travel_limit: # Respond with 400 Bad Request Loading