Commit graph

167 commits

Author SHA1 Message Date
Julian Stirling
cdab10ae46 Tweak types and fix mock persistence between tests 2026-06-05 16:58:35 +01:00
Julian Stirling
2c215b9f81 Add unit tests for RelativeDataPath and save_from_memory 2026-06-05 16:58:35 +01:00
Julian Stirling
c1915759b4 Update unit tests for capture mode. 2026-06-05 16:58:35 +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
b9c6071bc7 Start to move tests onto new camera api 2026-06-05 16:58:35 +01:00
Julian Stirling
b7ff72a383 Apply suggestions from code review of branch streaming-modes
Co-authored-by: Richard Bowman <richard.bowman@cantab.net>
2026-05-27 15:33:43 +00:00
Julian Stirling
7dd715da88 Update tests for new camera streaming modes 2026-05-27 08:43:11 +01:00
Joe Knapper
4e58d613d0 Merge branch 'stitch-all-logging' into 'v3'
Log during stitch all and handle errors

Closes #710

See merge request openflexure/openflexure-microscope-server!593
2026-05-15 16:36:15 +00:00
jaknapper
0f842c622b Test stitch all with mocking 2026-05-15 17:07:10 +01:00
Joe Knapper
bea1e35d61 Merge branch 'sharpness-monitor-none' into 'v3'
Sharpness monitor accepting 0 as None

Closes #776

See merge request openflexure/openflexure-microscope-server!592
2026-05-15 15:27:52 +00:00
jaknapper
a278b700ef Change check for record 2026-05-15 15:45:04 +01:00
jaknapper
bd796f98a1 Log during stitch all and handle errors 2026-05-15 15:40:15 +01:00
Julian Stirling
49ae6fcd70 Merge branch 'save-rom-data' into 'v3'
Save useful ROM data to data directory

See merge request openflexure/openflexure-microscope-server!590
2026-05-15 14:16:04 +00:00
Julian Stirling
40a9e25e02 Merge branch 'v3-labthings-rename-api-prefix' into 'v3'
Update code to use public `api_prefix` property

See merge request openflexure/openflexure-microscope-server!587
2026-05-15 13:56:19 +00:00
jaknapper
78c01de6d5 Sharpness monitor accepting 0 as None 2026-05-15 14:43:23 +01:00
Julian Stirling
714435f2d4 Fix unit tests for stage_measrue as an OFMThing 2026-05-14 16:49:29 +01:00
jaknapper
cbfbd84fa9 Changes from review 2026-05-14 10:52:33 +01:00
jaknapper
5962c80fdc Update testenvs with minimal app config
Worked out by Beth Probert
2026-05-13 17:54:29 +01:00
jaknapper
ab25705edc Move framerate to basecamera, using data_dir 2026-05-13 17:54:29 +01:00
jaknapper
e9414cfb1d Update picamera tests 2026-05-13 17:54:29 +01:00
jaknapper
563bfcf7be Update move_and_measure, add unit tests 2026-05-13 17:14:42 +01:00
Richard Bowman
7163823bf7 Remove the leading underscore from ThingServer._api_prefix. 2026-05-13 15:50:29 +01:00
Richard Bowman
d673ceab7b Update test suite to cope with LabThings validating properties on write (https://github.com/labthings/labthings-fastapi/pull/278) 2026-05-13 11:33:07 +01:00
jaknapper
3420138e85 Mock updated api route 2026-05-12 16:11:03 +01:00
Julian Stirling
92619e2131 Merge branch 'calibration_thing' into 'v3'
Calibrate settling times after moves

See merge request openflexure/openflexure-microscope-server!207
2026-05-11 12:32:30 +00:00
jaknapper
cc6866b2e5 Add tests for measure settling time 2026-05-11 12:49:52 +01:00
Julian Stirling
b6efb73cba Fix data directory save location and mount path 2026-05-11 11:07:38 +01:00
Joe Knapper
906b8be82c Merge branch 'start-gallery-thing' into 'v3'
Start implementing GalleryThing

See merge request openflexure/openflexure-microscope-server!576
2026-05-07 09:51:47 +00:00
Julian Stirling
c7bb3e3c11 Improve some attribute/method names 2026-05-07 09:48:49 +01:00
Julian Stirling
aeb337f9d1 Merge branch 'choose_int_downsample' into 'v3'
Choose a correlation resize factor rounded to an int

See merge request openflexure/openflexure-microscope-server!541
2026-05-07 08:14:41 +00:00
Julian Stirling
1b69b19ec3 Apply suggestions from code review of branch start-gallery-thing
Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
2026-05-07 08:04:41 +00:00
Julian Stirling
4583151345 Add runtime checkable protocol for checking gallery compatibility. 2026-05-06 14:42:44 +01:00
Julian Stirling
93d7d75b0d Create basic gallery class that finds Things that want to show data 2026-05-06 10:05:34 +01:00
Julian Stirling
cc681a666c Change shutdown command depending on OS versions 2026-04-30 14:48:35 +01:00
Julian Stirling
5b14f8d820 Add method for checking OS version. 2026-04-30 14:14:24 +01:00
Joe Knapper
924676ff5d Merge branch 'stack-trends' into 'v3'
Stack trends

Closes #752

See merge request openflexure/openflexure-microscope-server!564
2026-04-16 12:20:01 +00:00
Joe Knapper
4da8172a16 Updates from review, mark tests as allowed to fail 2026-04-16 11:49:04 +01:00
Beth Probert
fff965dab4 Fix side effects in mocking 2026-04-02 15:30:26 +01:00
Beth Probert
54b656952f Remove mock call to replace with real call 2026-04-02 15:09:39 +01:00
Beth Probert
01954167ab Merge branch 'v3' into labthings-debug-logging-config 2026-04-02 10:50:06 +01:00
jaknapper
1bb2a125bc Update comment 2026-03-27 11:28:58 +00:00
jaknapper
96d67672d9 Choose a correlation resize factor rounded to an int 2026-03-27 11:28:58 +00:00
Joe Knapper
70c36333a8 Data path based on containing DIR location 2026-03-26 17:25:47 +00:00
Joe Knapper
5a2787a039 Data path based on containing DIR location 2026-03-26 17:25:33 +00:00
Joe Knapper
92e5541267 Add test that stack checking agrees with at least 80% of manual labels 2026-03-26 16:48:50 +00:00
Julian Stirling
4f86833393 Bump version numbers for alpha5 release. 2026-03-26 14:12:51 +00:00
Julian Stirling
5303664a4e Fix tests 2026-03-24 16:31:04 +00:00
Joe Knapper
5ce77538d1 Fix tests now we dont do extra backlash moves 2026-03-12 14:53:55 +00:00
Julian Stirling
842d18ecdf Apply suggestions from code review of branch dynamic-ui
Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
2026-03-11 11:00:33 +00:00
Joe Knapper
84f9fc9aa7 Consistent spacing around MD tests 2026-03-11 10:35:09 +00:00