Commit graph

468 commits

Author SHA1 Message Date
Joel Collins
8b9ecbe2c7 Tidied up todos 2019-09-16 17:34:33 +01:00
Joel Collins
dc794d4df8 Microscope capture objects now just handle on-disk data 2019-09-16 16:35:32 +01:00
Joel Collins
5966ce29be Blackened everything 2019-09-15 14:17:52 +01:00
Joel Collins
756f18d853 Added docstring 2019-09-14 16:22:16 +01:00
Joel Collins
d9e07f913a Plugin schema are now just plugin forms (requires eV 1.2) 2019-09-14 15:51:51 +01:00
Joel Collins
6581385ab9 Refactored JsonPayload to JsonResponse 2019-09-13 18:04:33 +01:00
Joel Collins
e603b34267 Added extra docs 2019-08-08 10:41:44 +01:00
Joel Collins
3467fe7759 Added extra type checking when applying pi camera config 2019-08-08 10:14:57 +01:00
Joel Collins
04fb6f9550 Fixed up attaching camera hardware 2019-07-16 11:13:02 +01:00
jtc42
4733b250ed Added support for a fully mocked device 2019-06-28 12:52:55 +01:00
Joel Collins
8a5c749d47 Added specific API schema example plugin 2019-06-17 17:35:20 +01:00
Joel Collins
4ca93ba629 Added extra notes 2019-06-14 17:55:08 +01:00
Joel Collins
a8d03689e6 Removed redundant route attribute 2019-06-14 17:52:18 +01:00
Joel Collins
e55c097a32 Added API route for returning API schemas 2019-06-14 17:18:13 +01:00
jtc42
4246746bdc Updated config API to use apply_config 2019-06-11 10:33:45 +01:00
jtc42
8c3302644a Automatically add microscope ID and name to metadata 2019-06-07 17:28:57 +01:00
jtc42
235aa984f9 Updated docs 2019-06-07 13:37:20 +01:00
Joel Collins
0f8070b64a Smarter server teardown procedure 2019-06-05 16:04:32 +01:00
Joel Collins
0d8396b3e4 Fixed Microscope and camera arguments 2019-06-04 14:04:07 +01:00
Joel Collins
3b9ef670fe Improved flake8 results 2019-05-24 16:32:20 +01:00
Joel Collins
e30956d761 Renamed video_resolution to stream_resolution 2019-05-20 10:55:43 +01:00
Joel Collins
78882ab4c5 Removed debug print 2019-05-20 10:06:15 +01:00
Joel Collins
092181348b Load capture objects from files. Remove YAML database. 2019-05-15 16:32:58 +01:00
Joel Collins
63c0492022 Added route to download logfile 2019-05-15 15:30:28 +01:00
Joel Collins
ff534e6a51 Initial support for SBv3 and MockStage 2019-05-15 13:25:04 +01:00
Joel Collins
727c3ee715 Removed old client from API root 2019-05-05 20:59:57 +01:00
jtc42
b7a457fce1 Tidied up todos 2019-04-19 09:11:48 +01:00
jtc42
06a9aeeba5 Added route to list all routes 2019-04-18 12:41:32 +01:00
Joel Collins
941aadebfe Merge branch 'temporary-scan-captures' into 'master'
Temporary scan captures

See merge request openflexure/openflexure-microscope-server!10
2019-04-14 09:00:21 +00:00
Joel Collins
f9fb6dc721 Default to not temporary 2019-04-09 14:57:19 +01:00
Richard Bowman
e6ec800c21 Fixed camera settings
Since splitting the camera config into a separate YAML file, we've broken
the ability to change the camera's configuration via the API (or at any time
except when the camera is set up, I think).  This (mostly) fixes that, though
I get type errors that I've had to work around (e.g. when setting
shutter_speed), see `pi.py`
2019-04-08 22:41:12 +01:00
Joel Collins
a98158634c Close the camera if the stage cannot be opened 2019-03-21 17:48:45 +00:00
Joel Collins
d445b359e9 Let gunicorn handle logging 2019-03-19 12:46:16 +00:00
Joel Collins
6b3dca9f61 Fixed passing non-integers into preview window params 2019-02-25 14:23:08 +00:00
Joel Collins
b9bb89ce3f Fixed HTTP exceptions not returning with correct HTTP status code 2019-02-20 13:26:21 +00:00
Joel Collins
3bf3b0f0c2 Fixed tag put route 2019-02-20 11:08:19 +00:00
Joel Collins
366b771b72 Added size and position params to GPU preview route 2019-02-19 11:04:12 +00:00
Joel Collins
51cd776700 Store stage position in metadata 2019-02-19 10:43:33 +00:00
Joel Collins
05f52bbdeb Process all initial tags in one call 2019-02-18 11:30:38 +00:00
Joel Collins
404f28a8e0 Add metadata and tags at capture-time 2019-02-14 17:00:27 +00:00
Joel Collins
ed12cc7bce Fixed metadata and tags not storing to capture DB on update or exit 2019-02-13 15:17:52 +00:00
Joel Collins
5672b82f5e Added many many debug statements to help debug issue #32 2019-02-05 17:06:05 +00:00
Joel Collins
0948c9308a Went on a PEP-8 rampage 2019-01-31 17:20:46 +00:00
Joel Collins
63336757d4 Better handle missing error.message 2019-01-31 16:48:19 +00:00
Joel Collins
04bed170a0 Added JSON safety to config reads 2019-01-31 16:47:54 +00:00
Joel Collins
e9d74c07e6 Separated updating/writing from saving config 2019-01-31 13:51:02 +00:00
Joel Collins
8087e4d445 Updated to use apply_config and read_config instead of setters and getters 2019-01-31 13:34:14 +00:00
Joel Collins
323c48858d Updated to use api_microscope.rc.asdict(), and minor formatting changes 2019-01-31 13:26:56 +00:00
Joel Collins
36b0cb0be0 Save config on server shutdown 2019-01-30 18:23:58 +00:00
Joel Collins
f2a3261b03 Overhauled config loader to allow split configs 2019-01-30 17:45:11 +00:00