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
311366c943
Added type hints to CSM extension
2020-12-04 17:05:40 +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
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
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
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
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
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
24398ba7dc
Updated tasks nomenclature
2020-07-21 12:54:42 +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
d897ad38a5
Added basecamera preview_active
2020-06-29 15:39:33 +01:00
Joel Collins
9cecb477cb
Flipped to explicit finite lock timeouts
2020-06-29 09:03:27 +01:00
Joel Collins
2435842ff6
Changed locks to 1s default
2020-06-25 16:48:17 +01:00
Joel Collins
6b39669546
Removed default timeout from camera lock
2020-06-24 16:04:33 +00:00
Joel Collins
7c1c49eff2
Added 5 second timeout to device locks
2020-06-24 10:39:00 +01:00
Joel Collins
5d70d5f7fe
Remove camera timeout
2020-06-15 16:19:17 +01:00
Joel Collins
89637976e7
Reverted frame thread to patched threading.Thread
2020-06-15 12:09:23 +01:00
Joel Collins
a34214b9fb
Fixed broken references to capture list
2020-04-28 14:47:22 +01:00
Joel Collins
caf553db7a
Moved capture management into separate object
2020-04-28 14:32:56 +01:00
Joel Collins
de5894964e
Explicitally use gevent for camera stream thread
2020-03-27 16:40:06 +00:00
Joel Collins
43c8fea37f
Use LabThings ClientEvent
2020-03-27 15:07:11 +00:00
Joel Collins
697fa87566
Removed debug print
2020-03-17 14:20:07 +00:00
Joel Collins
2bc02b3844
Sync frames using gevent events
2020-03-15 17:06:05 +00:00
Joel Collins
6092e8ab5d
Rearranged for clarity
2020-03-15 16:30:19 +00:00
Joel Collins
a1531e9b14
Fixed capture key types
2020-03-01 18:04:33 +00:00
Joel Collins
60c6ae72f8
Handle captures as an OrderedDict. Fixes file deletion
2020-03-01 17:57:30 +00:00
Joel Collins
0595d3c620
Let camera object handle its own library rebuild
2020-02-18 16:16:06 +00:00
Joel Collins
cf66359559
Reimplemented serialising LST
2020-02-06 13:35:05 +00:00
Joel Collins
9b4bf4c8fc
Moved status routes to instrument/state
2020-01-29 17:43:52 +00:00
Joel Collins
19af98736d
Draft of new semantics
2020-01-29 11:55:39 +00:00
jtc42
36334ed743
Moved to a LabThings dependency for server
2020-01-17 15:13:32 +00:00
Joel Collins
feddcc546b
Changed preferred paths to use PROGRAMDATA, /var, and /etc
2020-01-16 16:31:19 +00:00
Joel Collins
bf9a1e358e
Fixed finding captures by UUID
2020-01-14 15:29:35 +00:00
jtc42
a8a3cafa97
Restructured labthings
2019-12-21 12:10:09 +00:00
Joel Collins
6de315fd48
Drafted ZipBuilder plugin
2019-11-28 16:01:05 +00:00
jtc42
6581612312
Implemented root API v2 routes
2019-11-14 16:33:00 +00:00
Joel Collins
b81cfaf9e7
Converted all configs to JSON
2019-11-12 14:36:39 +00:00
Joel Collins
4e7606aa0c
Blackened files
2019-11-06 22:07:16 +00:00
jtc42
625b03fae3
Moved lock submodule into 'common' and updated docs
2019-11-01 18:10:04 +00:00