Joel Collins
4f2cf79a26
Task route now returns a dictionary with task ID as key
2019-02-19 16:12:14 +00:00
Joel Collins
cc3f7f19df
Fixed attaching lock failure
2019-02-19 13:42:17 +00:00
Joel Collins
31efadd884
Removed debug code
2019-02-19 13:41:58 +00:00
Joel Collins
e738837101
Fixed broken piexif imports
2019-02-19 13:26:18 +00:00
Joel Collins
c6eb6148cc
Packaged basic Piexif module
2019-02-19 12:02:11 +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
184e3d9558
Fixed format checks for loading exif data
2019-02-18 17:25:50 +00:00
Joel Collins
e8fb3b378c
Fixed missing capture validation
2019-02-18 12:11:33 +00:00
Joel Collins
ab70a3857c
Only use exif if supported format
2019-02-18 11:48:56 +00:00
Joel Collins
05f52bbdeb
Process all initial tags in one call
2019-02-18 11:30:38 +00:00
Joel Collins
340b3dda89
Initial testing for exif metadata
2019-02-18 10:53:18 +00:00
Joel Collins
2314084cb1
Made thumbnails bigger, for new Vue client
2019-02-14 17:18:26 +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
35041af234
axes_to_array defaults to converting to int
2019-02-12 11:27:42 +00:00
Joel Collins
1bbe234749
Fixed issue #42
2019-02-11 10:00:44 +00:00
Joel Collins
88b946b473
Improved runtime-config docs
2019-02-07 11:19:00 +00:00
Joel Collins
1436e58283
Improed CaptureObject documentation
2019-02-06 15:18:02 +00:00
Richard Bowman
0520f058ad
Explicitly set ISO=0 (auto) when adjusting gain.
2019-02-05 18:42:50 +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
f99ad30fb6
Started PEP-8-ing
2019-01-31 16:48:59 +00:00
Joel Collins
d4e7d067a3
Removed fraction conversion
2019-01-31 16:48:39 +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
0fd0cd8bac
Option to read a JSON-safe version of config (type conversion and exclusion of lens shading data)
2019-01-31 16:47:26 +00:00
Joel Collins
036fb82628
Moved calibration plugin to defaults. Save config when calibration finishes.
2019-01-31 16:46:34 +00:00
Joel Collins
8ed4cca19c
Added calibration plugin to defaults
2019-01-31 16:45:28 +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
5471ffa62b
Introduced apply_config and read_config methods
2019-01-31 13:29:07 +00:00
Joel Collins
e5c10adf8d
Rewritten to remove config redundancy
2019-01-31 13:28:15 +00:00
Joel Collins
cb122e5ef6
Moved static methods to functions
2019-01-31 13:27:35 +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
7a63451063
Added docstring
2019-01-30 18:23:48 +00:00
Joel Collins
92ac947982
Demoted missing attribute warning to debug
2019-01-30 18:23:40 +00:00
Joel Collins
cd1e450a2b
Fixed massive bug in config contraction
2019-01-30 18:23:26 +00:00
Joel Collins
e0c09b2845
Fixed plugin path
2019-01-30 18:22:54 +00:00
Joel Collins
f2a3261b03
Overhauled config loader to allow split configs
2019-01-30 17:45:11 +00:00
Joel Collins
f720e67700
Updated path to new autofocus plugin
2019-01-30 13:59:39 +00:00
Joel Collins
4450ee132e
Moved autofocus plugin to its own module
2019-01-30 13:51:20 +00:00
Joel Collins
a6791d55ac
Plugin routes are now fully qualified
2019-01-30 13:51:09 +00:00
Joel Collins
0c156128fc
Minor formatting changes
2019-01-30 12:02:35 +00:00
Joel Collins
7ad1e7507f
Use a sensible error handler
2019-01-30 12:02:27 +00:00
Joel Collins
e6ddeaeb3a
Create lock even when stage is disconnected
2019-01-30 12:00:30 +00:00
Joel Collins
73eda19acc
Merge branch 'recalibration_plugin' into 'master'
...
A plugin to allow recalibration via the web API
See merge request openflexure/openflexure-microscope-server!4
2019-01-30 09:47:25 +00:00
Richard Bowman
416b74cb4a
A plugin to allow recalibration via the web API
...
This adds a plugin with a single endpoint, "recalibrate".
The recalibrate methods are deliberately simple and not aware
of the StreamingCamera because I want to share the maximum
amount of code with non-microscope projects that also want
to flatten the lens shading.
The plugin is microscope-specific, and therefore handles
shutting down the stream and managing the resolution of
the camera, to allow the calibration to run without
restarting the microscope server.
Currently it **DOES NOT SAVE SETTINGS**.
TODO: save the settings after recalibration.
Arguably this isn't a job for this plugin, what we would
need is:
* A method to sync the StreamingCamera's settings with the
underlying PiCamera object
* A method to save the StreamingCamera's settings to disk.
I think it would be neatest to provide the first of these as
a method of the StreamingCamera class, and call it from the
plugin. Saving the settings to disk (e.g. to the microscope
rc file, or to somewhere else) should be a separate endpoint
(although most interfaces will probably call it immediately
after recalibration).
2019-01-30 09:10:33 +00:00
Joel Collins
6743882bf1
Corrected the abort code for missing resource
2019-01-29 14:43:22 +00:00