Commit graph

165 commits

Author SHA1 Message Date
Joe Knapper
bb38e11ba8 Merge branch 'settling-time' into 'v3'
Decrease default settling time to 0.05

See merge request openflexure/openflexure-microscope-server!657
2026-07-10 13:04:12 +00:00
Joe Knapper
e709001494 Decrease default settling time to 0.05 2026-07-10 10:49:51 +01:00
Julian Stirling
ad7b0d8da8 Record timestamp when adding frames to stream 2026-07-10 09:39:09 +01:00
Julian Stirling
83ceb82ea8 Use a path object that supports setting a Thing for the data directory.
This allows us to ensure that arbitrary paths are not selected via the API.
2026-06-05 16:58:35 +01:00
Julian Stirling
c18d43a3a5 Start to move rest of python onto refactored camera API 2026-06-05 16:58:35 +01:00
jaknapper
a278b700ef Change check for record 2026-05-15 15:45:04 +01:00
jaknapper
78c01de6d5 Sharpness monitor accepting 0 as None 2026-05-15 14:43:23 +01:00
Joe Knapper
07caa1f05f Looser typing of stage positions in autofocus 2026-05-13 17:14:42 +01:00
Joe Knapper
b1791833e2 Clean up data_to_array to not use get attr 2026-05-13 17:14:42 +01:00
jaknapper
563bfcf7be Update move_and_measure, add unit tests 2026-05-13 17:14:42 +01:00
jaknapper
0e1d9cca18 Improvements to properties and docstrings 2026-05-13 17:14:37 +01:00
Joe Knapper
1f5adbb1a5 Ruff 2026-05-13 17:14:37 +01:00
jaknapper
bea7447f26 Clean up from suggestions 2026-05-13 17:14:37 +01:00
Joe Knapper
cab960fe2c Apply suggestions from code review of branch fom-af
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2026-05-13 17:14:36 +01:00
jaknapper
664bb00c12 Allow users to specify method for autofocus 2026-05-13 17:14:36 +01:00
jaknapper
881970ce34 Record fom as other sharpness metric 2026-05-13 17:14:36 +01:00
Richard Bowman
622fa17634 Enable validation for all Things and pick correct branch
This commit updates the branch to use Thing._class_settings instead of FEATURE_FLAGS for a safer way to implement new features.
2026-05-13 11:34:21 +01:00
jaknapper
c171e5bdde Remove hold from sharpness monitor 2026-05-11 12:49:20 +01:00
jaknapper
ffa023dfa9 Correct data types in sharpness monitors 2026-05-11 11:04:55 +00:00
jaknapper
500e08555c Measure settling time action and hold in sharpness monitor 2026-05-11 11:04:55 +00:00
Richard Bowman
9334e99551 Fix typing of JPEGSharpnessMonitor attributes
appends should be done on the underlying `_`-prefixed attributes, not on the `Sequence` typed properties.
2026-04-28 14:58:55 +01:00
Richard Bowman
d2aebf8b10 Make properties of JPEGSharpnessMonitor read-only
For thread-safety reasons we should not modify the lists used by
`JPEGSharpnessMonitor`. This commit marks them as read-only properties
and types them as `Sequence` so `mypy` should flag if they get modified.
2026-04-28 14:50:04 +01:00
Joe Knapper
4da8172a16 Updates from review, mark tests as allowed to fail 2026-04-16 11:49:04 +01:00
jaknapper
bc6ea9a1ca Manually test for increasing or decreasing stacks 2026-04-02 17:43:52 +01:00
Joe Knapper
5ce77538d1 Fix tests now we dont do extra backlash moves 2026-03-12 14:53:55 +00:00
jaknapper
b43150c8bb Remove backlash correction from basic stack, as this is handled by move rel 2026-03-12 14:53:55 +00:00
Julian Stirling
0527990282 Use backlash compensation in smart scan and autofocus 2026-03-02 14:40:25 +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
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
19a6943d60 Use Invocation errors for expected errors. 2026-02-21 21:57:20 +00:00
Julian Stirling
2a3a54b936 Get unit tests passing with Scan Workflows 2026-01-16 09:28:15 +00:00
Julian Stirling
11ef1217e0 Docstrings and tweaks of ScanWorflow refactor 2026-01-16 09:28:15 +00:00
Julian Stirling
adab5bae24 Start smart stack parameters in scan workflow 2026-01-15 16:05:02 +00:00
Julian Stirling
c1ad445517 Fix some final type issues in Autofocus 2026-01-09 15:18:06 +00:00
Julian Stirling
7abede0db0 Fix type errors in remaining Things 2026-01-09 15:18:05 +00:00
Julian Stirling
4060c06a2b Assorted type fixes 2026-01-09 15:18:04 +00:00
Julian Stirling
e1dfceb0bd Remove one final invocation logger dep from autofocus 2025-12-17 11:20:41 +00:00
Julian Stirling
09336c9cb5 Apply suggestions from code review of branch continue-removing-deps
Co-authored-by: Richard Bowman <richard.bowman@cantab.net>
2025-12-17 10:08:47 +00:00
Julian Stirling
189e82e8dc Remove deps from autofocus 2025-12-16 17:27:22 +00:00
Julian Stirling
5eea78cac7 update action, property, and setting syntax for labthings-fastapi 0.0.12 2025-12-14 18:23:26 +00:00
Julian Stirling
7bc4c514a6 Autofix import order 2025-12-02 16:26:15 +00:00
Julian Stirling
5017fea9d1 A couple of final edits suggested in review 2025-12-02 09:57:25 +00:00
Julian Stirling
9b58f4d59e Apply suggestions from code review of branch scanning-stability
Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
2025-12-02 09:57:25 +00:00
Julian Stirling
e5d2ebbb79 Add tests for checking stack result 2025-12-02 09:57:24 +00:00