Joel Collins
a832dfb2f1
Use get_ident from threading
2019-09-15 14:28:18 +01:00
Joel Collins
5966ce29be
Blackened everything
2019-09-15 14:17:52 +01:00
jtc42
4733b250ed
Added support for a fully mocked device
2019-06-28 12:52:55 +01:00
Joel Collins
f31c28fe52
Fixed read and apply config dicts
2019-06-12 17:23:24 +01:00
Joel Collins
f7ba68b443
Converted base camera into an ABC
2019-06-04 14:03:30 +01:00
Joel Collins
5a22d0d308
Re-added timeout parameters (previous commit broke)
2019-05-24 16:47:04 +01:00
Joel Collins
3b9ef670fe
Improved flake8 results
2019-05-24 16:32:20 +01:00
Joel Collins
092181348b
Load capture objects from files. Remove YAML database.
2019-05-15 16:32:58 +01:00
Joel Collins
2108dea007
Defaut new images to write to file
2019-05-01 14:46:00 +01:00
Joel Collins
fface9994e
Fixed merge conflicts and simplified new capture creation
2019-04-26 18:32:32 +01:00
Joel Collins
ea44bbefd2
Simplified creation of new capture objects
2019-04-26 18:26:27 +01:00
jtc42
8a564bbdba
Fixed default video folder NoneType
2019-04-19 09:06:14 +01:00
Joel Collins
28561433a0
Malformed capture db no longer crashes server
2019-04-15 19:14:31 +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
7cf54240be
Temp capture folder now handled by camera
2019-04-11 07:13:32 +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
4602b1da9d
Testing not re-saving EXIF on exit
2019-03-28 14:45:51 +00:00
Joel Collins
2cdc20b08e
Handle empty or malformed capture list
2019-03-28 14:18:01 +00:00
Joel Collins
2fe7722da6
Added subdirectory support for captures
2019-03-06 17:04:04 +00:00
Joel Collins
51ac8a0647
Disabled stream timeout by default
2019-02-26 13:53:33 +00:00
Joel Collins
e8fb3b378c
Fixed missing capture validation
2019-02-18 12:11:33 +00:00
Joel Collins
340b3dda89
Initial testing for exif metadata
2019-02-18 10:53:18 +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
cb122e5ef6
Moved static methods to functions
2019-01-31 13:27:35 +00:00
Joel Collins
f2a3261b03
Overhauled config loader to allow split configs
2019-01-30 17:45:11 +00:00
Joel Collins
363094170e
Added/updated docs
2019-01-24 14:05:57 +00:00
Joel Collins
8292ebf7c7
Implement hardware locks
2019-01-24 12:11:01 +00:00
Joel Collins
a40cb9b9f6
Implemented basic threaded tasks for long-running functionality
2019-01-23 16:48:49 +00:00
Joel Collins
4e985fe80d
Capture list now persists through server restart
2019-01-22 11:23:15 +00:00
Joel Collins
646dc24a91
Fixed captures trying to restart recording for a stopped stream
2019-01-17 12:23:54 +00:00
Joel Collins
4c5728b182
Updated docstrings and todo
2019-01-08 15:59:47 +00:00
Joel Collins
78ce3a9a11
Explicit output stream must be specified when capturing
2019-01-08 15:46:57 +00:00
Joel Collins
b21040f22e
Better fix for RGB capture memory issues
2018-11-30 10:33:39 +00:00
Joel Collins
71ea3abda9
Converted config to a getter/setter property
2018-11-29 15:49:59 +00:00
Joel Collins
c887f990b5
Split loading, saving, and applying camera config file
2018-11-23 12:14:10 +00:00
Joel Collins
cf96fa0ad2
Better handling of capture path and temporary files
2018-11-22 21:31:21 +00:00
Joel Collins
69e97ba5a3
Fixed non-clashing basename generation
2018-11-20 13:56:51 +00:00
Joel Collins
ea10cf1ce9
Created initial general documentation
2018-11-16 15:46:19 +00:00
Joel Collins
143be8f592
Started integrating into Microscope class
2018-11-07 15:06:41 +00:00
Joel Collins
5df9b53a9c
PEP-8-ified code a bit
2018-11-07 14:22:42 +00:00
Joel Collins
a7598c5e5b
Pi camera is now persistent in StreamingCamera
2018-11-07 12:03:09 +00:00
Joel Collins
61beb211ae
More sensible creation of BaseCamera class properties
2018-11-07 11:04:01 +00:00
Joel Collins
ffb4dda6a6
Added subclass close() method
2018-11-07 10:58:36 +00:00
Joel Collins
7b23ca4b8a
Moved generic camera methods into BaseCamera class
2018-11-07 10:54:39 +00:00
Joel Collins
35c7d97db9
Removed redundant code
2018-11-06 18:50:15 +00:00
Joel Collins
a7499fa3be
Fixed broken context manager __exit__
2018-11-06 18:49:44 +00:00
Joel Collins
fd73732c6a
StreamingCamera cleans up StreamObject files automatically on close()
2018-11-06 18:37:17 +00:00
Joel Collins
d99602bd3d
Allow log of multiple captures by StreamingCamera
2018-11-06 18:24:35 +00:00