Commit graph

405 commits

Author SHA1 Message Date
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
Julian Stirling
35d6e45892 Refactor and simplify how picamera settings work 2025-07-07 15:25:16 +01:00
Julian Stirling
df8a9d0e93 Renaming picamera context manager to make it clear it is different from using the picamera itself as a context manager 2025-07-07 15:25:16 +01:00
Julian Stirling
52a80ef66b And adjust for new as lt import 2025-07-07 15:25:14 +01:00
Julian Stirling
840ed7f20e Update Thing Settings to use the new format provided by PR #110 of Labthings FastAPI 2025-07-07 15:24:30 +01:00
Julian Stirling
a0065931e4 Merge branch 'include-sangaboard' into 'v3'
Move SangaboardThing into repo

See merge request openflexure/openflexure-microscope-server!311
2025-07-03 14:27:38 +00:00
Julian Stirling
544ede0bf9 Apply suggestions from code review of branch include-sangaboard
Co-authored-by: Beth Probert <beth_probert@outlook.com>
2025-07-03 14:57:48 +01:00
Julian Stirling
222a0c973d Remove old sangaboard abort_move action as moves are not cancelled with a cancel hook 2025-07-03 13:16:25 +01:00
Julian Stirling
e7cf0c3f24 Allow stiching to be cancelled after a scan complete
Closes #417
2025-07-02 18:13:48 +01:00
Julian Stirling
5e6aeb9bbf Move SangaboardThing into repo 2025-07-02 16:42:38 +01:00
Julian Stirling
ffd958f823 Remove test Thing that is is never used. 2025-07-02 14:33:23 +01:00
Julian Stirling
2e18c2017a Apply suggestions from code review of branch download-stitched-image
Co-authored-by: Beth Probert <beth_probert@outlook.com>
2025-07-02 09:39:33 +00:00
Julian Stirling
7295b86cf6 Split up ScanDirectory._find_files into seperate functions 2025-07-01 19:45:45 +01:00
Julian Stirling
254305a7a5 Clarify whether name or path is returned in scan directory functions 2025-07-01 19:21:56 +01:00
Julian Stirling
3671d52499 Do not zip DZI files, or their associated tiles 2025-07-01 09:04:14 +01:00
Julian Stirling
daf2cee481 Add tests and correct stitch path 2025-06-30 23:03:54 +01:00
jaknapper
ff43deae36 Download stitched image of scan (if present)
* Docstring for download stitch
* use global STITCH_SUFFIX
2025-06-30 20:18:48 +01:00
Julian Stirling
51f9df995d More changes suggested in review, generally docstring issues. 2025-06-30 17:25:58 +01:00