Commit graph

239 commits

Author SHA1 Message Date
Julian Stirling
39a04df5be Objects for scan locations allowing more sophisitcated tracking.
This commit updates the scan planners to allow more sophisticated
tracking of past positions. Currently it still checks that
the algorithm is unchanged from past behaviour.
2025-10-19 19:55:36 +01:00
Julian Stirling
b314ced4f7 Final Range of motion tests 2025-10-17 17:31:34 +01:00
Julian Stirling
30217a4c38 Add tests for initial moves at start of ROM test 2025-10-17 15:19:06 +01:00
Julian Stirling
95f5bbb16c Ensure ROM z-predict returns an integer and add more tests. 2025-10-17 15:19:06 +01:00
Julian Stirling
3d49cbf921 Adding even more ROM tests 2025-10-17 15:19:06 +01:00
Julian Stirling
664c7de5f8 Add more ROM tests 2025-10-17 15:19:06 +01:00
Julian Stirling
50d6298c06 Start updating ROM tests for new structure 2025-10-17 15:19:06 +01:00
Chish36
1e7ad7bf29 Fixed ruff errors 2025-10-17 15:19:06 +01:00
Ben Chisholm
e5b0c7f049 Created function to collate data with unit test for it 2025-10-17 15:19:06 +01:00
Chish36
094cb94da8 Ruff formatting 2025-10-17 15:19:06 +01:00
Chish36
773f19ee36 Added unit test for parasitic error 2025-10-17 15:19:06 +01:00
Chish36
1e7f62f8ad 2 unit tests added. Added a dummy matrix to mock_csm and changed position in mock_stage to a dictionary. 2025-10-17 15:19:06 +01:00
Julian Stirling
96ffbb2b49 Bump version for alpha3 and update changelog 2025-10-09 19:55:42 +01:00
jaknapper
b58ddbf7d9 Update testing 2025-10-09 17:51:15 +01:00
Julian Stirling
94541b2d4f Merge branch 'stack-height-sanitise' into 'v3'
Verify stack params at start of scan main loop

Closes #455

See merge request openflexure/openflexure-microscope-server!400
2025-10-09 14:00:59 +00:00
Joe Knapper
089beae01a Tests for coercing stack params to valid values.
Co-authored with Julian Stirling
2025-10-09 14:26:01 +01:00
Joe Knapper
dae5b816cc Merge branch 'sample-size-sim' into 'v3'
Simulate a rectangular sample

Closes #516

See merge request openflexure/openflexure-microscope-server!401
2025-10-07 10:09:37 +00:00
Joe Knapper
2fc92fc1ff Test sample and canvas size 2025-10-02 13:56:08 +01:00
Joe Knapper
bfe0064ce8 Update dummy test and fix sample coords 2025-09-25 16:14:13 +01:00
Julian Stirling
91c4fb22db Remove checks that purge empty scans is run in run_scan as it has moved 2025-09-25 15:16:23 +01:00
Joe Knapper
0e5517d45c Fix another hardcoded linux test 2025-09-25 12:04:39 +01:00
Julian Stirling
b9ca8b3094 Apply suggestions from code review of branch Increased-linting
Co-authored-by: Beth Probert <beth_probert@outlook.com>
2025-09-19 10:16:47 +00:00
Julian Stirling
6b1e40f689 Add flake8-simplicity rules 2025-09-18 16:21:45 +01:00
Julian Stirling
d7d1f42b2c Enable PyTest ruff checks 2025-09-18 16:21:45 +01:00
Julian Stirling
9c20c18230 Remove mock for loading tuning file during test as it no longer needs to talk to hardware. 2025-09-18 13:00:46 +01:00
Julian Stirling
24233412af Start adding ANN ruff rules 2025-08-27 18:54:15 +01:00
Julian Stirling
2325dced5e Merge branch 'test-server-startup' into 'v3'
Test server startup

See merge request openflexure/openflexure-microscope-server!379
2025-08-27 16:11:34 +00:00
Julian Stirling
4af4e89c0a Merge branch 'no-uvicorn.error-logs-without-error' into 'v3'
Stop reporting uvicorn.error in log file unless log it is an error

Closes #511

See merge request openflexure/openflexure-microscope-server!375
2025-08-27 14:30:11 +00:00
Julian Stirling
5515d55e6d Merge branch 'error-types' into 'v3'
Tweak a few error types.

Closes #320

See merge request openflexure/openflexure-microscope-server!376
2025-08-27 13:47:26 +00:00
Julian Stirling
353d311c1e Apply suggestions from code review of branch no-uvicorn.error-logs-without-error
Co-authored-by: Richard Bowman <richard.bowman@cantab.net>
2025-08-27 13:24:37 +00:00
Julian Stirling
2d89cdd3a3 Add tests for the legacy api 2025-08-24 20:45:55 +01:00
Julian Stirling
e53f4e3b2b Remove the conftest defined fixtures as mock methods return mocks already removing the need for the defined mocks 2025-08-24 19:22:19 +01:00
Julian Stirling
867cd0cad1 Add further server setup tests splitting up configuration testing from CLI 2025-08-24 19:11:03 +01:00
Julian Stirling
405299b221 Test server configuration helper functions 2025-08-22 23:11:27 +01:00
Julian Stirling
d5e2a48f32 Fix tests to catch correct error types 2025-08-21 16:21:09 +01:00
Julian Stirling
3529c96ec6 Stop reporting uvicorn.error in log file unless log it is an error 2025-08-21 15:40:27 +01:00
Julian Stirling
6fa4e4dc64 Add a grab_as_array camera method that grabs from the stream but catches broken jpegs and retries 2025-08-21 13:35:21 +01:00
Julian Stirling
347247f45b Add unit tests that simulates broken frames and catches the correct error. 2025-08-21 13:35:21 +01:00
Julian Stirling
3289221c6b Add unit tests for all of serving static files. Update docs in src to clarify behaviour 2025-08-15 11:01:43 +01:00
Julian Stirling
db41d673fb Add tests for static directory checking 2025-08-15 09:21:38 +01:00
Julian Stirling
bfdbbb9ad2 Merge branch 'request-no-cache' into 'v3'
Request no cache

See merge request openflexure/openflexure-microscope-server!361
2025-08-14 19:59:58 +00:00
Julian Stirling
67ebb94d6c Add tests for not caching static files except fonts 2025-08-14 14:46:23 +01:00
Julian Stirling
af93db7de8 Merge branch 'let-preview-stitch-cancel' into 'v3'
Allow preview to cancel!

See merge request openflexure/openflexure-microscope-server!359
2025-08-13 15:18:13 +00:00
Julian Stirling
c066843f9b Test cancelling preview 2025-08-12 16:42:15 +01:00
Julian Stirling
59224fe726 Remove unneded eumerates 2025-08-12 15:15:02 +01:00
Julian Stirling
6142a267db Add flake8 bugbear checks 2025-08-12 13:09:43 +01:00
Julian Stirling
058f890c61 Update version numbers for v3 alpha2 release 2025-08-08 11:58:14 +01:00
Julian Stirling
3d7438ed2b Merge branch 'stitch-tile-size' into 'v3'
Update to stitching 0.2

See merge request openflexure/openflexure-microscope-server!352
2025-08-08 10:29:43 +00:00
jaknapper
f9f28b3500 Update tests 2025-08-08 10:44:03 +01:00
Julian Stirling
3a4b99df55 Apply suggestions from code review of branch faster-stage-tests
Co-authored-by: Beth Probert <beth_probert@outlook.com>
2025-08-08 09:32:31 +00:00