Commit graph

4027 commits

Author SHA1 Message Date
Julian Stirling
ca46439269 Rename "active_detector" for background detecor. Improve thing selector coercion 2026-01-14 15:10:13 +00:00
Julian Stirling
e46836ffe1 Test background detector UI specification 2026-01-14 15:10:13 +00:00
Julian Stirling
b494e7dc3c Fix picamera test suite 2026-01-14 10:05:04 +00:00
Julian Stirling
6b97d2da44 Fix unit tests for background detectors as Things 2026-01-14 10:05:04 +00:00
Julian Stirling
3e8874188e Get UI working for background detector things 2026-01-14 10:05:04 +00:00
Julian Stirling
44860bf777 Continue turning background detectors back into Things 2026-01-14 10:05:04 +00:00
Julian Stirling
6a1ad573d9 Start turning background detectors back into things 2026-01-14 10:05:04 +00:00
Julian Stirling
dcf5b26c06 Merge branch 'scans_folder_bugfix' into 'v3'
Bugfix, stop saving scans into log folder

See merge request openflexure/openflexure-microscope-server!460
2026-01-14 10:03:34 +00:00
Julian Stirling
4b81d52a89 Add tests for _full_config_from_args 2026-01-13 20:32:05 +00:00
Julian Stirling
ad53f72a60 Bugfox, stop saving scans into log folder 2026-01-13 18:03:13 +00:00
Joe Knapper
9df3fd6360 Merge branch 'fast-sim' into 'v3'
Simulation Camera Improvements

Closes #638

See merge request openflexure/openflexure-microscope-server!458
2026-01-13 14:15:35 +00:00
Julian Stirling
0bba613a4b Apply suggestions from code review of branch fast-sim
Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
2026-01-13 11:45:32 +00:00
Julian Stirling
51d6bdb991 Fully generate simulation sample canvas before setting to class attribute 2026-01-13 11:34:49 +00:00
Julian Stirling
6f74e447cd Merge branch 'Windows-Testing' into 'v3'
Fix (most) unit tests on Windows

See merge request openflexure/openflexure-microscope-server!457
2026-01-12 22:15:51 +00:00
Julian Stirling
795d145ae6 Merge branch 'proper-integration-tests' into 'v3'
Proper integration tests

Closes #480

See merge request openflexure/openflexure-microscope-server!456
2026-01-12 21:50:38 +00:00
Julian Stirling
a15458c02d Apply suggestions from code review of branch Windows-Testing
Co-authored-by: Richard Bowman <richard.bowman@cantab.net>
2026-01-12 21:40:58 +00:00
Julian Stirling
4c557612fb Apply suggestions from code review of branch fast-sim
Co-authored-by: Richard Bowman <richard.bowman@cantab.net>
Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
2026-01-12 17:41:51 +00:00
Julian Stirling
ad8dd55cca Update integration test for new labthings client exceptions 2026-01-12 16:23:10 +00:00
Julian Stirling
6ec60523cd Ensure that each integration test tests more than just a lack of errors 2026-01-12 16:23:10 +00:00
Julian Stirling
7e9637e496 Run new integration suite in CI 2026-01-12 16:23:10 +00:00
Julian Stirling
8b51a66ae4 Move test_dummy_server out of unit tests and into integration tests. 2026-01-12 16:23:10 +00:00
Julian Stirling
c9ac85bffc Rename the test that fully boots the server to lifecycle_test 2026-01-12 16:23:09 +00:00
Julian Stirling
d6b00ef1bb Change out of temp dirs in git version tests before closing so windows doesn't error 2026-01-12 16:20:22 +00:00
Julian Stirling
3e8511f281 Use Python not echo as a mock shutdown command for windows compatibility 2026-01-12 16:20:22 +00:00
Julian Stirling
ec29a1999f Update how stitching is called in Windows 2026-01-12 16:20:22 +00:00
Julian Stirling
00a0301e0c Close file logging hander in unit tests before tmpdir cleanup 2026-01-12 16:20:22 +00:00
Julian Stirling
52293ba948 Normalise expected paths in windows tests 2026-01-12 16:20:22 +00:00
Julian Stirling
40a2e4c6ed Continue improving simulation camera tests 2026-01-12 16:17:11 +00:00
Julian Stirling
0abbd827fd Remove exception block from simulation that only silence errors and errors that are impossible to reach 2026-01-12 16:17:11 +00:00
Julian Stirling
8f52841f67 Add tests for new simulated camera poperites that update the canvas 2026-01-12 16:17:11 +00:00
Julian Stirling
dfe50f5c56 Split up generic camera tests and simulation specific ones. 2026-01-12 16:17:11 +00:00
Julian Stirling
fa89f24477 Type fixing for simulation camera 2026-01-12 16:17:11 +00:00
Julian Stirling
69cfb54e46 String PropertyControls 2026-01-12 16:17:10 +00:00
Julian Stirling
fc3ca8cbe7 Slightly increase glyph shape so that blob cannot touch edge 2026-01-12 16:17:10 +00:00
Julian Stirling
980af66548 Let lists of colours be set for simulation sample. 2026-01-12 16:17:10 +00:00
Julian Stirling
11379d8fa7 Allow colour to be set for simulation sample. 2026-01-12 16:17:10 +00:00
Julian Stirling
7b9f4aa202 Expose sample density and sample repeat for simulation camera to the UI in camera settings rather than as init options 2026-01-12 16:17:10 +00:00
Julian Stirling
159e2d14ab Unify canvas and sample shape for simulation, set flag for if repeating. 2026-01-12 16:17:10 +00:00
Julian Stirling
99f7802195 Create sprites upsampled, before downsampling so they hhave a smoother edge interpolation 2026-01-12 16:17:10 +00:00
Julian Stirling
fa249a0f24 Calculate simulation images downsampled for speed 2026-01-12 16:17:10 +00:00
Julian Stirling
1e36811796 Merge branch 'type-fixes' into 'v3'
Type fixes

See merge request openflexure/openflexure-microscope-server!455
2026-01-12 16:10:25 +00:00
Julian Stirling
4266923123 Update picamera coverage zip 2026-01-12 15:33:13 +00:00
Julian Stirling
06cab8a6a4 Use type[] not Type[] in typehints, and add clarification comment. 2026-01-12 15:28:10 +00:00
Julian Stirling
560ca6e9fe Tweak a docstring as the variables out of date 2026-01-12 15:28:10 +00:00
Julian Stirling
3db83534e8 Update for how Labthings-Fastapi 0.0.14 impements the fallback server 2026-01-09 17:43:11 +00:00
Julian Stirling
b46f8af8e7 Bump labthings-fastapi to 0.0.14 and fix error types in unit tests 2026-01-09 17:17:24 +00:00
Julian Stirling
e85a1d3080 Final test fixes 2026-01-09 15:18:06 +00:00
Julian Stirling
5d25067a21 Update CI to fail if MyPy fails but to still give code quality report 2026-01-09 15:18:06 +00:00
Julian Stirling
c1ad445517 Fix some final type issues in Autofocus 2026-01-09 15:18:06 +00:00
Julian Stirling
141ccc06c1 Some minor type fixes 2026-01-09 15:18:05 +00:00