Richard
202d942c90
Add entry point to generate OpenAPI yaml/json
...
This is designed to be used as a console entry point so we can generate
the OpenAPI description without starting the server.
2021-07-06 15:23:42 +01:00
Richard
8157fa6d58
Add YAML export from APISpec
2021-06-27 21:08:48 +01:00
Richard Bowman
4d405443bb
Merge branch 'scan-shape-limits' into 'master'
...
Add minimum scan dimension
See merge request openflexure/openflexure-microscope-server!123
2021-05-18 10:55:06 +00:00
Richard
f2a4b976b9
Fix whitespace
2021-05-13 10:43:50 +01:00
Richard Bowman
1cea75be70
Formatting fixes
2021-03-31 09:40:31 +01:00
Richard Bowman
af7ef08f63
Move away from poetry
...
More or less everything is now done by setup.py
Pipfile simply installs the module in editable mode, which
recursively resolves dependencies as defined in setup.py.
2021-03-26 21:11:22 +00:00
Richard Bowman
792e782968
Validate scan shape on the server
...
The scan API view now uses a schema with validation
constraints to enforce a minimum size of 1 in any dimension.
This requires better error handling in the app, which I've added.
It also needs a fix in LabThings so the error propagates correctly
2021-02-09 09:21:56 +00:00
Joel Collins
5232b36644
Test cobertura mypy coverage report
2021-01-08 10:05:31 +00:00
Joel Collins
7866ec0f47
Static type analysis
2020-11-30 13:36:45 +00:00
Joel Collins
4d40e81f0e
Added API route to convert LST to PNG
2020-11-18 14:23:12 +00:00
Joel Collins
421a2e3960
Replace top-level actions View with builtin LabThings
2020-11-17 17:17:06 +00:00
Joel Collins
e464086723
Cleaned up main app setup
2020-11-17 16:55:35 +00:00
Joel Collins
021745da26
Remove separate camera stream thread
2020-11-17 16:19:55 +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
6644819352
Formatting
2020-11-12 14:33:08 +00:00
Joel Collins
4a9d1c5e3c
Removed default JSON files and submoduled JSON encoder class
2020-11-12 12:02:09 +00:00
Joel Collins
37c5e20a23
Fixed View import
2020-10-29 14:14:01 +00:00
Joel Collins
ee8a2fc415
Code formatting
2020-10-29 14:06:36 +00:00
Joel Collins
f1d0ea5b28
Added API LogFileView
2020-10-29 14:06:15 +00:00
Joel Collins
b3332c078d
Fixed misuse of id name
2020-10-16 14:53:02 +01: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
Joel Collins
ba9c77d5c3
Changed stage type URL to /instrument/stage/type for consistency
2020-10-13 13:34:29 +00:00
samuelmcdermott
86d866c5f9
Moved API from action to property view
2020-10-13 12:39:17 +01:00
Joel Collins
5ca386bde1
Merge branch 'deltastage' into 'master'
...
Deltastage
See merge request openflexure/openflexure-microscope-server!69
2020-09-09 15:18:25 +00:00
Joel Collins
54c342bbbb
Switch to picamerax
2020-09-07 16:31:59 +01:00
Samuel McDermott
5e9e8cb2a3
Merge remote-tracking branch 'origin/master' into deltastage
2020-08-27 15:46:17 +01:00
Joel Collins
24398ba7dc
Updated tasks nomenclature
2020-07-21 12:54:42 +01:00
Joel Collins
c8c66803e5
Updated setting LabThings JSON encoder
2020-07-21 11:57:22 +01:00
Joel Collins
1a4f5ff8bc
Simplified log handlers
2020-07-15 15:47:57 +01:00
Joel Collins
94dcf6b026
Switch to labthings monkey alias
2020-07-03 15:24:22 +01:00
Joel Collins
70d3af9edb
Specified LABTHINGS_JSON_ENCODER
2020-06-23 13:48:29 +01:00
Joel Collins
7c9f42f7f3
Optimised captures by using greenlets for disk IO
2020-06-11 11:42:31 +01:00
Joel Collins
1bc0b3e8b3
Set default logging level to INFO
2020-05-28 11:26:49 +01:00
Joel Collins
a0702fbc69
Set logging level further up the script
2020-05-26 13:22:14 +01:00
Joel Collins
efac711da9
Actually fixed exception logging
2020-05-22 11:01:32 +01:00
Joel Collins
b8a8160644
Fixed log view file path
2020-05-22 10:23:13 +01:00
Joel Collins
cf04fc36fc
Added catch-all 410 response for API v1 routes
2020-05-22 10:17:05 +01:00
Joel Collins
4a553040d3
Fixed logging and split access and root file handlers
2020-05-20 17:46:44 +01:00
Joel Collins
79259b3fc9
Revert "Remove CI file from frame branch"
...
This reverts commit dac3632c28
2020-05-18 09:54:18 +00:00
Joel Collins
93d29fbc8d
Added full logger
2020-05-10 16:35:08 +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
6213620031
Enable ipv6
...
Setting the listen address to :: puts flask into ipv6 mode.
This makes it compatible with ipv6 and, thanks
to the system automatically translating ipv4
into ipv6, it is completely compatible with ipv4
as well.
2020-04-23 10:42:49 +01:00
Joel Collins
6f4791ec57
Merge branch 'master' into 'hotfix-2.0.x'
...
# Conflicts:
# openflexure_microscope/api/app.py
# poetry.lock
# pyproject.toml
2020-03-31 10:10:33 +00:00
Joel Collins
3836c70b2c
Monkey patch all
2020-03-31 10:53:44 +01:00
Joel Collins
78edb695bf
Default to not debug mode
2020-03-27 16:39:40 +00:00
Joel Collins
cd3aabacac
Fix #131
2020-03-26 14:45:01 +00:00