Commit graph

235 commits

Author SHA1 Message Date
Richard Bowman
1f558bbeb7 OpenAPI Validation Fixes
OpenAPI validation seems to have become stricter about checking for None defaults
in parameters that don't allow None. I have
modified two things as a result:

1. StageTypeProperty (used to pick between SangaStage and SangaDeltaStage)
now defaults to SangaStage (which is the
original behaviour anyway)
2. It is now allowed to pass x,y,z=None when making a move - this is the same as
not passing the respective argument, so the
function already correctly handled this case.
2023-03-22 08:58:04 +00:00
Richard Bowman
4b73fd82f6 Format fix 2023-03-21 15:11:24 +00:00
Richard Bowman
8e50a90fb2 Explicitly mark arguments as optional
mypy now considers implicitly Optional arguments
to be errors - I have made them now explicitly
Optional, which passes.
2023-03-21 15:04:49 +00:00
Richard Bowman
a9fff24848 Explicitly specify encoding
The update to pylint means we were failing because open()
doesn't specify the encoding everywhere.  I have now specified utf-8
everywhere.  This was patchy before, and is default behaviour on the
Pi.  There's a slim chance it will cause some issues on Windows, but
that shouldn't affect anyone outside the developers.

I've also ignored a couple of new spurious warnings, and explicitly
ignored some unused variables.
2022-08-09 07:16:44 +01:00
Joel Collins
68380385cb Watch for broken frames using JPEG end bytes, and log error 2020-12-08 18:07:05 +00:00
Joel Collins
0626b13bfd Formatting 2020-12-07 17:08:47 +00:00
Joel Collins
3e2f876627 Added mjpeg bitrate to settings 2020-12-07 16:49:00 +00:00
Joel Collins
311366c943 Added type hints to CSM extension 2020-12-04 17:05:40 +00:00
Joel Collins
8eff136cc3 Reduced logging level of some mock camera notices 2020-12-04 15:09:45 +00:00
Joel Collins
63b633ba44 2.9 dev numpy types 2020-12-04 13:35:11 +00:00
Joel Collins
bc9b80d11a Added start_worker and get_frame for compatibility 2020-12-01 17:10:25 +00:00
Joel Collins
7866ec0f47 Static type analysis 2020-11-30 13:36:45 +00:00
Joel Collins
dd816404ec Code formatting 2020-11-23 17:03:10 +00:00
Joel Collins
25d3b15d4e Fixed camera settings read 2020-11-22 16:12:04 +00:00
Joel Collins
6d1f0197fd Removed pointless abstract method implementations 2020-11-18 16:10:00 +00:00
Joel Collins
da6212616c Cleaned up code layout 2020-11-17 16:31:32 +00:00
Joel Collins
85f77fa867 Removed old picamera_lst_path attribute 2020-11-17 16:21:05 +00:00
Joel Collins
021745da26 Remove separate camera stream thread 2020-11-17 16:19:55 +00:00
Joel Collins
3058c67542 Moved frames_iterator scope 2020-11-17 11:21:01 +00:00
Joel Collins
f7655400e1 Move stream frame management into FrameStream class 2020-11-16 11:25:39 +00:00
Joel Collins
90ccd0bc4e Added frame iterator explanation comment 2020-11-16 10:14:54 +00:00
Joel Collins
f51d4ff200 Added use_video_port argument back to array() 2020-11-13 17:15:39 +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
7c450b6214 Moved piexif into captures submodule 2020-11-12 12:03:34 +00:00
Joel Collins
1c7b27a29f Merge branch 'master' of https://gitlab.com/openflexure/openflexure-microscope-server into master 2020-11-06 10:41:50 +00:00
Joel Collins
eae3124959 Fixed ignored kwargs 2020-11-06 10:36:10 +00:00
Joel Collins
4c61f0c847 Reduced long-term lock usage 2020-11-06 10:27:22 +00:00
Joel Collins
3cfbb40655 Removed pointless GPU preview log 2020-10-28 15:40:51 +00:00
Joel Collins
250fd07e9a Code formatting and linting 2020-10-27 14:14:59 +00:00
Joel Collins
09849ce064 Explicit JPEG thumbnail on capture 2020-10-27 14:04:55 +00:00
Joel Collins
9b4031ff12 Changed frame tracker logging level to debug 2020-10-26 14:33:40 +00:00
Joel Collins
574f4a615d Fast AF use normal stream 2020-10-26 13:16:58 +00:00
Joel Collins
cd8145c198 Isort 2020-10-22 15:59:19 +01:00
Joel Collins
c33fb6afc8 Fixed initial stream object 2020-10-16 14:53:10 +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
2ce58f2aee Merge branch 'master' of https://gitlab.com/openflexure/openflexure-microscope-server 2020-09-07 16:33:01 +01:00
Joel Collins
54c342bbbb Switch to picamerax 2020-09-07 16:31:59 +01:00
Joel Collins
5139b24ffe Updated to new LabThings structure 2020-09-04 15:48:52 +01:00
Joel Collins
24398ba7dc Updated tasks nomenclature 2020-07-21 12:54:42 +01:00
Joel Collins
fccc58fd62 Added lock acquisition to preview functions 2020-07-15 17:18:23 +01:00
Joel Collins
2c38a7dc43 Delegate starting stream worker 2020-07-06 13:33:17 +01:00
Joel Collins
6e22376d9e Start streamer on init and never time out 2020-07-06 13:27:18 +01:00
Joel Collins
ab3c4b3745 Merge remote-tracking branch 'origin/master' into labthings-070 2020-07-03 18:13:20 +01:00
Joel Collins
489b81f34b Removed some unused gevent imports 2020-07-02 23:41:28 +01:00
Joel Collins
d897ad38a5 Added basecamera preview_active 2020-06-29 15:39:33 +01:00
Joel Collins
54a2e78551 Fixed broken error handler 2020-06-29 15:38:09 +01:00
Joel Collins
8152d1dccd Revert "Removed unused explicit LST handler"
This reverts commit 89e8d041a8.
2020-06-29 15:35:29 +01:00