Commit graph

72 commits

Author SHA1 Message Date
Richard Bowman
9dbb083ee7 More Marshmallow argument updates 2022-08-09 13:16:10 +01:00
Richard Bowman
e22f36b308 Start explicit metadata argument for marshmallow
A side effect of re-locking dependencies is having a newer marshmallow.
This deprecates having `description=` as a keyword, and puts it in a
separate metadata arg instead.

This commit is the start of my search-and-replaceing to update to the new
format.
2022-08-09 12:52:57 +01:00
Richard
b7c9d3b73b Sorted remaining content_type issues and blackened 2021-07-19 20:09:09 +01:00
Richard
48fa1842a9 Fixed stage schemas
If missing=None, we need to specify allow_None=False
in order to generate valid OpenAPI.
This may also be fixed by an upstream change in LabThings.

Also, OneOf was being used incorrectly in StageTypeProperty.
2021-07-13 22:53:35 +01:00
Richard
50ad9d4369 Fixed content dicts to be valid OpenAPI
For functions that return JPEGs, we were
 using "content_type": "image/jpeg"
 instead we should use "content": { "image/jpeg": {}}
2021-07-13 22:52:10 +01:00
Richard
00531a93bf Fixed response descriptions for stream/RAM capture 2021-07-06 15:24:43 +01:00
Richard Bowman
a2ba95c1d3 Minor linting improvements
I have now disabled W1203 globally, see comment in
pyproject.toml
2021-04-27 11:17:11 +01:00
Richard Bowman
90f5a755b1 Handle absolute moves correctly
I've changed the default values in MoveStageAPI
so that it correctly handles absolute moves with missing axes.
I've also simplified it so it isn't using axes_to_array as that
resulted in a confusing code path.
2021-04-27 10:55:51 +01:00
Joel Collins
7866ec0f47 Static type analysis 2020-11-30 13:36:45 +00:00
Joel Collins
421a2e3960 Replace top-level actions View with builtin LabThings 2020-11-17 17:17:06 +00:00
Joel Collins
c0f9f34256 Removed now-redundant TODO comments 2020-11-13 11:27:54 +00:00
Joel Collins
f681800e26 Improved args schema for captures 2020-11-12 16:46:07 +00:00
Joel Collins
6fb61e1e3f Reverted logging style 2020-11-12 15:45:58 +00:00
Joel Collins
9f5252194a Updated all log strings to new format 2020-11-12 15:12:17 +00:00
Joel Collins
994e83dbeb Code cleanup 2020-10-14 14:56:29 +00:00
Joel Collins
2bfb988460 Code formatting 2020-10-13 15:02:19 +01:00
samuelmcdermott
86d866c5f9 Moved API from action to property view 2020-10-13 12:39:17 +01:00
samuelmcdermott
f30679d4db stage API returns a dict 2020-10-12 16:56:25 +01:00
samuelmcdermott
81ca2c9cb1 Add a get route for the stage type and rename 2020-10-12 01:23:44 +01:00
samuelmcdermott
79f3104409 Add API to set the stage 2020-10-11 01:01:21 +01:00
Joel Collins
24398ba7dc Updated tasks nomenclature 2020-07-21 12:54:42 +01:00
Joel Collins
29ee73cedc Fixed argument 'missing' values 2020-06-29 16:39:37 +01:00
Joel Collins
a72211a6dc Removed old decorator import 2020-06-29 15:34:32 +01:00
Joel Collins
e6cb9f6b35 Initial 0.7.0 conversion 2020-06-29 15:24:59 +01:00
Joel Collins
9cecb477cb Flipped to explicit finite lock timeouts 2020-06-29 09:03:27 +01:00
Joel Collins
c1bd691654 Removed pointless doc_response 2020-05-28 11:26:39 +01:00
Joel Collins
1819ca6a9c Switched to ActionView and PropertyView from decorators 2020-05-26 10:54:21 +01:00
Joel Collins
caf553db7a Moved capture management into separate object 2020-04-28 14:32:56 +01:00
Joel Collins
9646058c37 Code format 2020-04-28 13:20:38 +01:00
Joel Collins
cda5cdbb44 Switched away from using JSONify 2020-04-24 16:05:01 +01:00
Richard Bowman
102264c4be The "actions" endpoint shouldn't be tagged
The actions endpoint (responds only to GET, lists the actions)
is not itself an action.
The ``@tag("actions")`` causes LabThings to try to include
it as an action, which fails.
Removing the tag makes the server run again -
but maybe I've broken something else here?
2020-04-23 08:09:21 +01:00
Joel Collins
19b0101718 Make action links external 2020-02-12 13:52:57 +00:00
Joel Collins
ae7846887d Show output when shutting down 2020-02-11 17:31:56 +00:00
Joel Collins
51692795c6 Revert "Fixed rebooting for openflexure-ws user"
This reverts commit 72af35e4ae
2020-02-11 17:31:11 +00:00
Joel Collins
72af35e4ae Fixed rebooting for openflexure-ws user 2020-02-11 17:04:11 +00:00
Joel Collins
9b4bf4c8fc Moved status routes to instrument/state 2020-01-29 17:43:52 +00:00
Joel Collins
265eed7bfa Fixed picamera setup 2020-01-29 16:16:09 +00:00
Joel Collins
7458d278d8 Simplified new configuration and metadata 2020-01-29 15:36:57 +00:00
jtc42
6df7fe9405 Blackened 2020-01-24 15:41:33 +00:00
jtc42
36334ed743 Moved to a LabThings dependency for server 2020-01-17 15:13:32 +00:00
Joel Collins
be74b92bd7 Default to video port for quick-captures 2020-01-15 11:55:30 +00:00
Joel Collins
e74d509d9e Updated docs 2020-01-15 11:53:59 +00:00
Joel Collins
397f6ef19f Added ram-capture method 2020-01-15 11:53:24 +00:00
Joel Collins
fc1ba3d834 Add system actions list 2020-01-14 15:06:50 +00:00
Joel Collins
a329b9197b Renamed Resource to View, and allow custom root links 2020-01-14 11:41:56 +00:00
Joel Collins
4003e4e65c Renamed devices to components 2020-01-13 11:08:05 +00:00
Joel Collins
39866626dc Use LabThings decorators 2020-01-10 20:02:36 +00:00
Joel Collins
3f25959150 Switch to return status, not deprecated state 2020-01-10 19:58:45 +00:00
Joel Collins
5616e76f50 Use LabThings decorators 2020-01-10 19:58:30 +00:00
Joel Collins
23c10dc292 Added LabThings decorators 2020-01-10 19:55:41 +00:00