Commit graph

301 commits

Author SHA1 Message Date
Julian Stirling
b70d36c629 Move main test suite to new use new test environment. 2025-12-18 16:26:37 +00:00
Julian Stirling
0d09dc58da Add way to get thing from test environment by type 2025-12-18 16:26:37 +00:00
Julian Stirling
3ea7be6531 Update and simplify smart scan tests 2025-12-17 16:44:54 +00:00
Julian Stirling
be5f9630ca A fond farewell to the last of the InvocationLoggers 2025-12-17 15:52:03 +00:00
Julian Stirling
f6d4b368d0 Update tests for not having cancel hooks 2025-12-17 14:04:37 +00:00
Julian Stirling
8f805c8e68 Add a testing environment/harness for easily running actions without blocking 2025-12-17 14:04:37 +00:00
Julian Stirling
e1dfceb0bd Remove one final invocation logger dep from autofocus 2025-12-17 11:20:41 +00:00
Julian Stirling
5a391bff1c Update ROM tests 2025-12-16 17:27:22 +00:00
Julian Stirling
189e82e8dc Remove deps from autofocus 2025-12-16 17:27:22 +00:00
Julian Stirling
3332bc5e1d Update tests for stage without deps 2025-12-16 14:57:13 +00:00
Julian Stirling
ddc81f9c17 Apply suggestions from code review of branch update-for-labthings0.0.12
Co-authored-by: Richard Bowman <richard.bowman@cantab.net>
2025-12-16 13:32:57 +00:00
Julian Stirling
baf0ff9a11 Updating for changes related to NotConnectedToServerErrors 2025-12-15 17:18:30 +00:00
Julian Stirling
f79505546c Final updates for main test suite for labthings-fastapi 0.0.12 compatibility 2025-12-14 22:11:08 +00:00
Julian Stirling
dec90f5b6b Update legacy_api.py test_sangaboard and test_server_cli so tests pass for labthings-fastapi 0.0.12 2025-12-14 20:53:33 +00:00
Julian Stirling
70fc3516e6 Update test_camera and test_dummy_server for labthings-fastapi 0.0.12 2025-12-14 20:04:48 +00:00
Julian Stirling
0c3de60629 Update test_cameras to use create_thing_without_server 2025-12-14 19:46:57 +00:00
Julian Stirling
cfbb7cf7f9 Start fixing tests. This involves further blocking portal changes.
This will need PR 225 of labthings-fastapi to be merged to run.
2025-12-14 19:21:06 +00:00
Julian Stirling
9ef417971f Remove a load more /names/ 2025-12-14 18:23:33 +00:00
Julian Stirling
e7f669cb56 No blocking portals 2025-12-14 18:23:33 +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
5375e9578b Update version for alpha 4 release and update changelog 2025-12-08 15:07:14 +00:00
Julian Stirling
7bc4c514a6 Autofix import order 2025-12-02 16:26:15 +00:00
Joe Knapper
99afe89c10 Merge branch 'scanning-stability' into 'v3'
Improve the stability of scanning

Closes #599 and #600

See merge request openflexure/openflexure-microscope-server!434
2025-12-02 15:47:03 +00:00
Julian Stirling
38c596fb49 Merge branch 'Sanga-firmware-check' into 'v3'
Log an error if the sangaboard firmware is below v1.0.4

Closes #623

See merge request openflexure/openflexure-microscope-server!447
2025-12-02 15:14:50 +00:00
Julian Stirling
240b7d1ba5 Use semver library for checking sangaboard firmware version. 2025-12-02 11:55:56 +00:00
Julian Stirling
797dda3514 Add failing unit test for sangaboard version before v1 2025-12-02 11:00:41 +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
2749a1818c Add unit tests for ChannelDeviationLUV background detector 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
Julian Stirling
a15f23bec2 Add unit tests for captureing images in a stack 2025-12-02 09:57:24 +00:00
Julian Stirling
573330dede Add tests for z_stack 2025-12-02 09:57:24 +00:00
Julian Stirling
b9c58b70c9 Looping autofocus errors on failure to find focus. Test looping autofocus algorithm 2025-12-02 09:57:24 +00:00
Julian Stirling
13e065a44d Add test for the outer smart stack algorithm 2025-12-02 09:57:24 +00:00
Julian Stirling
a5d5ba4af8 Update scan planner test pickles 2025-11-28 12:00:35 +00:00
Julian Stirling
dfe7fb6c42 Stop scan planner plots erroring if there are no secondary locations 2025-11-28 12:00:35 +00:00
Julian Stirling
cd53024c4f Update the scan test helpers so it is easier to save and plot 2025-11-28 09:52:09 +00:00
Julian Stirling
3ecc41720d Merge branch 'recentre-with-rom-methods' into 'v3'
Recentre using RangeOfMotionThing methods

Closes #499 and #573

See merge request openflexure/openflexure-microscope-server!429
2025-11-11 17:49:08 +00:00
Julian Stirling
b0b755f19b Update unit tests for algorithmic change to recentre 2025-11-11 17:13:52 +00:00
Julian Stirling
982c55905c Update default exposure in picam and defaul LST values in tuning files, and set default colour gains from LST 2025-11-11 11:20:08 +00:00
Julian Stirling
13d3871059 Add testing for loading the tuning files in the normal test suite now not tied to picamera 2025-11-11 11:20:08 +00:00
Julian Stirling
ec16cc17f8 Update tuning file utils for our own tuning files. 2025-11-11 11:20:07 +00:00
Julian Stirling
f7d03d8c00 Fix confusion between (x,y) image coordinates and (y,x) matrix indicies 2025-11-05 13:19:28 +00:00
Julian Stirling
dcf4b0b383 Split the logic for deciding how to move in recentre from the moves and the main loop 2025-11-05 11:43:25 +00:00
Julian Stirling
7f0e7c52f9 Test everything remainign in recentre except the main algorithm for an axis 2025-11-05 00:36:43 +00:00
Julian Stirling
a5a372b6c0 Split out matix calculations from CSM, and continue testing recentre 2025-11-05 00:15:30 +00:00
Julian Stirling
c659a556cc Update stage_measure test data to be more parabolic and add turning point test 2025-11-04 18:54:15 +00:00
Julian Stirling
b09aa7b5b8 First interation of a recentre algoritm build on ROM test methods 2025-11-04 18:54:15 +00:00
Julian Stirling
cd5d74b5e6 Add tests for not reading ongoing scan data 2025-11-04 18:50:17 +00:00
Julian Stirling
e4cb48eb6d Stricter rules on pytest.raises, requiring match for generic error types
Closes #560
2025-10-28 17:20:40 +00:00
Julian Stirling
adf9736fab Add testing for patching json files 2025-10-27 15:07:45 +00:00