openflexure-microscope-server/openflexure_microscope
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
..
api Fixed a bug where malformed JSON payloads prevented default param values from returning 2019-01-29 13:54:32 +00:00
camera Added/updated docs 2019-01-24 14:05:57 +00:00
plugins A plugin to allow recalibration via the web API 2019-01-30 09:10:33 +00:00
stage Added/updated docs 2019-01-24 14:05:57 +00:00
__init__.py Fixed docstrings 2019-01-24 16:24:14 +00:00
config.py Clarified default config paths 2018-12-20 16:06:09 +00:00
exceptions.py Added string representation of LocError 2019-01-29 13:41:46 +00:00
lock.py Fixed docstrings 2019-01-24 16:24:14 +00:00
microscope.py Fixed docstrings 2019-01-24 16:24:14 +00:00
microscoperc.default.yaml Added fov into microscope RC 2019-01-21 10:49:59 +00:00
task.py Fixed broken error handling for long-running tasks 2019-01-28 17:49:44 +00:00
utilities.py Added set_properties context manager 2019-01-29 13:41:35 +00:00