Commit graph

574 commits

Author SHA1 Message Date
Joe Knapper
d6f1502593 Apply suggestions from code review of branch Stitch-all
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2025-07-25 16:42:27 +00:00
jaknapper
7ac77c3e89 Stitch all scans button, and refresh scan tab when closing modals 2025-07-25 16:52:37 +01:00
Julian Stirling
cc05ab4b5f Finish basic tests of background detect 2025-07-25 11:55:20 +01:00
Julian Stirling
d0b5db21ba Start adding background detect tests 2025-07-25 11:52:02 +01:00
Julian Stirling
ab6ccd429a Fix DataSchema return for background detector status 2025-07-24 18:37:34 +01:00
Julian Stirling
75bdae5593 Fix message formatting and dosctring syntax 2025-07-24 17:54:58 +01:00
Julian Stirling
25d2f400b1 Set background on the pi-camera during initial calibration 2025-07-24 17:15:28 +01:00
Julian Stirling
eed3c44804 Get new background detect running in simulation mode. 2025-07-24 17:08:39 +01:00
Julian Stirling
fe1b84a922 Complete first pass (untested on hardware) of bg detect refactor. 2025-07-24 17:07:50 +01:00
Julian Stirling
2245d9357d Continue to rebase background detect. 2025-07-24 17:07:50 +01:00
Julian Stirling
b5586a4b32 A partial refactor of background detect 2025-07-24 17:07:50 +01:00
Julian Stirling
31e3d15890 Add random noise to simulation image 2025-07-24 16:17:52 +01:00
Julian Stirling
5701225158 Update simulation canvas to have colour so it works with background detect. 2025-07-24 15:58:32 +01:00
Julian Stirling
c8e87577cb Add tests for new system Thing. 2025-07-15 00:14:07 +01:00
Julian Stirling
e3146f1798 Apply suggestions from code review of branch merge-settings-and-system-control
Co-authored-by: Beth Probert <beth_probert@outlook.com>
2025-07-14 21:32:17 +00:00
Julian Stirling
9369b2988d Shutdown button terminates server in simulation. Adjust power tab layout 2025-07-14 18:57:36 +01:00
Julian Stirling
be94df7c8a Merge SettingsManager and SystemControl Things. 2025-07-14 17:59:46 +01:00
Julian Stirling
bed59c051b Merge branch 'update-setting-manager' into 'v3'
Update setting manager

Closes #477, #343, and #475

See merge request openflexure/openflexure-microscope-server!321
2025-07-14 16:47:41 +00:00
Julian Stirling
c9c8a89236 Merge branch 'simplify-csm-interface' into 'v3'
Add camera-stage-mapping compliant functions to BaseStage and BaseCamera.

Closes #346 and #476

See merge request openflexure/openflexure-microscope-server!326
2025-07-14 16:36:04 +00:00
Julian Stirling
34f8f86ef2 Apply suggestions from code review of branch update-setting-manager
Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
Co-authored-by: Beth Probert <beth_probert@outlook.com>
2025-07-14 17:11:54 +01:00
Julian Stirling
5c1f8f2e89 Write tests for checking git hash 2025-07-14 17:11:53 +01:00
Julian Stirling
608c4bd16f Expose version as thing property and via thing state so it ends up in metadata. 2025-07-14 17:11:53 +01:00
Julian Stirling
1dd0db888d Starting to create version reading code 2025-07-14 17:11:53 +01:00
Julian Stirling
d19d44ba4f Remove unused complex functionality from settings_manager.py. 2025-07-14 17:11:53 +01:00
Julian Stirling
59a5246904 Apply suggestions from code review of branch simplify-csm-interface
Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
2025-07-14 15:33:50 +00:00
Julian Stirling
705cf73173 Fixing docstrings for camera stage mapping changes. 2025-07-13 23:53:44 +01:00
Julian Stirling
531e5c27b2 Replace LoggingMoveWrapper with RecordedMove accepts a stage rather than an arbitrary move function
This was needed to get the correct key word arguments
2025-07-13 23:34:55 +01:00
Julian Stirling
b89449be77 Add camera-stage-mapping compliant functions to BaseStage and BaseCamera. 2025-07-13 21:55:55 +01:00
Julian Stirling
fab5fdfca2 Improve log filtering and logging error handling. Adding more logging tests. 2025-07-13 15:17:11 +01:00
Julian Stirling
ea73e44b01 Start adding tests for the loging configuration. 2025-07-13 14:28:55 +01:00
Julian Stirling
c68f0515f5 Apply suggestions from code review of branch better-docstrings
Co-authored-by: Richard Bowman <richard.bowman@cantab.net>
2025-07-11 07:26:26 +00:00
Julian Stirling
f91582c9eb Apply suggestions from code review of branch better-docstrings
Co-authored-by: Richard Bowman <richard.bowman@cantab.net>
2025-07-10 23:31:34 +00:00
Julian Stirling
7e6017f648 Get codespell passing and add it as a CI job. 2025-07-11 00:16:25 +01:00
Julian Stirling
e33fecaef0 Documentation of python magic class methods 2025-07-10 16:46:10 +01:00
Julian Stirling
864ca91e5c Add docstrings to all public package 2025-07-10 15:29:10 +01:00
Julian Stirling
14359e73bb Add public method docstrings. 2025-07-10 15:12:28 +01:00
Julian Stirling
1bbbfeef0f Add docstrings to public methods 2025-07-10 14:04:48 +01:00
Julian Stirling
a30b726b91 Class docstrings 2025-07-10 13:27:41 +01:00
Julian Stirling
11a1fd7f85 Move ThingSetting and ThingProperty docstrings under the definition. 2025-07-10 10:43:05 +01:00
Julian Stirling
2cb4003835 Add module level docstrings. 2025-07-10 09:24:50 +01:00
Julian Stirling
80beeea07b Add punctuation to docstrings 2025-07-10 09:24:50 +01:00
Julian Stirling
4dc41bb008 Single line summaries of docstrings 2025-07-10 09:24:49 +01:00
Julian Stirling
35d47fe3ed Starting docstring on the same lines as the quotations 2025-07-10 09:24:49 +01:00
Julian Stirling
be6a6ca6fe No starting docstrings with This 2025-07-10 09:24:49 +01:00
Julian Stirling
f51dae7b3a Doc strings to imperative mood 2025-07-10 09:24:49 +01:00
Julian Stirling
a84a916719 Restructured text fixes so that pydoctor would return without an error 2025-07-09 23:59:08 +01:00
Julian Stirling
cd6eaf7be7 Apply suggestions from code review of branch pass-portal-to-stop 2025-07-09 21:19:55 +00:00
Julian Stirling
d9fd54696a Monkey patch Uvicorn's handle_exit function to stop streams
Before the uvicorn handle_exit function is called kill the camera
streams.
2025-07-09 16:53:08 +01:00
Julian Stirling
421efa2866 Pass blocking portal to mjpeg_stream.stop()
This was updated in LabThings-FastAPI v0.0.10, but wasn't changed
as we moved over.
2025-07-09 16:53:08 +01:00
Julian Stirling
a8323c4f58 Remove section of docstring that no longer applies 2025-07-07 17:58:23 +00:00