Commit graph

1115 commits

Author SHA1 Message Date
Beth Probert
35efba19b8 Use pytest parametrize for better coverage of forbidden commands and reserved names 2026-03-05 13:55:05 +00:00
Beth Probert
48f6e1b369 Allow python and python3 as stitching commands. They are allowed. Move stitching tests into one file 2026-03-05 13:35:21 +00:00
Beth Probert
98e71207c5 Add forbidden windows commands to stitching and utilities to check for file name sanitation. Unit tests also added 2026-03-05 13:03:17 +00:00
Beth Probert
cea1a7a748 Ruff fix 2026-03-05 11:40:25 +00:00
Beth Probert
417da8d1d7 Ruff fix 2026-03-05 10:50:24 +00:00
Beth Probert
b9e9e29210 Moving debug to customise_server 2026-03-05 10:38:10 +00:00
Joe Knapper
84f3032022 Update docstrings to explain lower brightness 2026-03-04 20:52:49 +00:00
jaknapper
e324014a81 Increase target exposure to 40% 2026-03-04 20:52:49 +00:00
Joe Knapper
75ca73f148 Decrease target brightness for both cameras as its pre-gamma 2026-03-04 20:52:49 +00:00
Julian Stirling
7e4ec53d78 Update how the application configuration is read for LabThings 0.0.17 2026-03-04 17:22:03 +00:00
Julian Stirling
45903f92a6 Create and mount application level data direcory rather than just a scan directory 2026-03-04 17:22:03 +00:00
jaknapper
7ca94497c7 Remove link from basecamera docstring 2026-03-03 15:32:59 +00:00
jaknapper
3020ab59f4 Fix typing for gamma_curve 2026-03-03 14:21:28 +00:00
jaknapper
b716013ef2 Fixed tuning file gamma key to gamma_curve 2026-03-03 14:03:17 +00:00
jaknapper
0173cf912f Add gamma_curve to metadata 2026-03-03 13:59:43 +00:00
Joe Knapper
5019884175 Camera metadata includes subclass name, and test 2026-03-03 13:23:30 +00:00
Julian Stirling
ac9852a7ad Merge branch 'less-stack-coersion' into 'v3'
Do less coersion for stacks now labthings validates settings.

See merge request openflexure/openflexure-microscope-server!516
2026-03-03 10:02:05 +00:00
Julian Stirling
0fdcb9b623 Merge branch 'equal-offsets' into 'v3'
Allow histo scans with equal dx and dy

See merge request openflexure/openflexure-microscope-server!517
2026-03-02 22:56:53 +00:00
Julian Stirling
1dce732a9a Always log dx and dy steps for Histoscan 2026-03-02 20:53:16 +00:00
Joe Knapper
c09164a4e3 Apply suggestions from code review of branch equal-offsets
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2026-03-02 20:47:12 +00:00
Joe Knapper
5a79e4ffd3 Allow histo scans with equal dx and dy 2026-03-02 19:24:20 +00:00
Julian Stirling
d7b4457a55 Do less coersion for stacks now labthings validates settings. 2026-03-02 18:19:11 +00:00
Julian Stirling
d4fbcb6d61 Apply suggestions from code review of branch backlash-in-stage
Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
2026-03-02 14:40:27 +00:00
Julian Stirling
9ab7e50773 Apply suggestions from code review of branch backlash-in-stage
Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
2026-03-02 14:40:27 +00:00
Julian Stirling
0527990282 Use backlash compensation in smart scan and autofocus 2026-03-02 14:40:25 +00:00
Julian Stirling
c2b784e606 Add stage backlash correction 2026-03-02 14:37:21 +00:00
Julian Stirling
35819aa826 Track the backlash state of stages 2026-03-02 14:37:21 +00:00
Julian Stirling
6f3cf00b36 Add a base stage method for update_position, splitting out hardware specifics 2026-03-02 14:37:21 +00:00
Julian Stirling
e443b1ac5b Merge branch 'more-dev-docs' into 'v3'
More developer documnetation

See merge request openflexure/openflexure-microscope-server!513
2026-03-02 13:36:18 +00:00
Julian Stirling
ae8285ed28 Merge branch 'opencv-camera-switcher' into 'v3'
Add functionality to switch OpenCV camera without restarting the server.

See merge request openflexure/openflexure-microscope-server!487
2026-03-02 13:25:12 +00:00
Joe Knapper
61e4c8d8d7 Apply suggestions from code review of branch opencv-camera-switcher
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2026-03-02 12:34:06 +00:00
Julian Stirling
2fee313d42 Apply suggestions from code review of branch opencv-camera-switcher 2026-03-02 11:24:32 +00:00
Julian Stirling
9e48f13d6f Apply suggestions from code review of branch opencv-camera-switcher
Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
2026-03-02 11:02:35 +00:00
Julian Stirling
bc36a1e9d0 Create a developer guidance section for the hosted docs 2026-03-01 12:15:36 +00:00
Julian Stirling
efad4631fb Tweak types 2026-02-26 15:46:40 +00:00
Julian Stirling
f551fd5f28 Use cv2_enumerate_cameras by default if installed for naming openCV cameras 2026-02-26 14:53:20 +00:00
williamwadsworth
40f970130f human readable opencv camera names in windows 2026-02-26 14:02:03 +00:00
williamwadsworth
c9117b62a0 camera switching for opencv camera
From discussion with @julianstirling
2026-02-26 12:48:55 +00:00
Julian Stirling
296e044a86 Further subclassing of workflow settings 2026-02-25 19:15:59 +00:00
Julian Stirling
2ae4f832bf Simplify setting model validation 2026-02-25 19:15:59 +00:00
Joe Knapper
63338f8ea0 From feedback 2026-02-25 19:15:59 +00:00
Joe Knapper
43fa793698 Apply suggestions from code review of branch scan-params
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2026-02-25 19:15:59 +00:00
jaknapper
80760a7d8f Fix docstring 2026-02-25 19:15:58 +00:00
jaknapper
b211cfd4c5 Validate and test stack inputs
Update picamera hardware test
2026-02-25 19:15:56 +00:00
jaknapper
565204da59 Remove unneeded moves from basic stack
Update tests with better comments

Test a stack with both backlash compensation and offset
2026-02-25 19:14:15 +00:00
Joe Knapper
fb40af915a Switch to auto enumerating enums 2026-02-25 19:14:15 +00:00
Joe Knapper
331ceb705d Changes based on review, mostly enums and moved stack params 2026-02-25 19:14:15 +00:00
Joe Knapper
37e3450670 Move CaptureParams into camera from autofocus 2026-02-25 19:14:15 +00:00
Joe Knapper
e750129de2 Initial commit, splitting params into focus, capture, stack 2026-02-25 19:14:15 +00:00
Julian Stirling
b1d84492cc Set OpenCV backend when switching cameras. 2026-02-24 18:21:43 +00:00