Commit graph

403 commits

Author SHA1 Message Date
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
Richard Bowman
9851485057 Update config and lifecycle test to use API prefix
This adds an API prefix to the three config files, and updates the hard-coded URLs in the lifecycle test to use the new API root.

The change doesn't affect the unit or integration test suites, as neither of these set an API prefix.

Most of the required updates are likely to be in the web app, which I've not yet touched.
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
Joe Knapper
fd0c0bd277 Add failing URL tests 2026-03-11 10:23:26 +00:00
Julian Stirling
c4d0c0e9da Explicit header, text and bullet blocks rather than one HTML block in ui spec 2026-03-10 15:25:37 +00:00
Julian Stirling
85ebfef44a Improve and test html sanitisation 2026-03-10 15:25:37 +00:00
Julian Stirling
88da4a18d9 Update unit tests 2026-03-10 15:25:37 +00:00
Beth Probert
6d66dd0ed8 Change make_path_safe to is_path_safe and update tests to reflect this 2026-03-09 15:45:32 +00:00
Beth Probert
3776828699 Fix final typo 2026-03-09 14:52:23 +00:00
Beth Probert
ada7585706 Fix typos 2026-03-09 14:40:51 +00:00
Beth Probert
b1d47c8aae Add final test case for path checking 2026-03-09 14:09:00 +00:00
Beth Probert
968237bec0 Ruff checks 2026-03-09 14:02:15 +00:00
Beth Probert
f67699fbc8 Raise warnings if there are unsafe file path elements rather than coercing file paths. Stitching still raises an error if your file name is unsafe 2026-03-09 13:54:43 +00:00
Beth Probert
349485d43b Remove multi-underscores from allowed names 2026-03-06 15:52:50 +00:00
Beth Probert
2c2f97cb56 Force file names to be lower case to avoid Windows issues around case sensitivity when checking if a file already exists. Path names can be uppercase as these will be defined on a users system and pre-exist. Files are created by us so we can force sanitation 2026-03-06 15:37:01 +00:00
Beth Probert
35f7adcf07 Codespell 2026-03-06 14:16:42 +00:00
Beth Probert
4395d4001c Allow relative imports with two dots at start of path. Update unit tests. 2026-03-06 14:13:00 +00:00
Beth Probert
e5429d6cda Change make_path_safe to allow single dot relative imports, but no dots anywhere else. Added new unit tests for this. 2026-03-06 14:07:07 +00:00
Beth Probert
713df248ff Add underscores to fix unit test 2026-03-06 09:53:41 +00:00
Beth Probert
7a17c92d3e Apply suggestions from code review of branch 523-improve-validation-checks
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2026-03-05 15:13:42 +00:00
Beth Probert
f52ce85b3e Ruff formatting 2026-03-05 14:04:33 +00:00
Beth Probert
35efba19b8 Use pytest parametrize for better coverage of forbidden commands and reserved names 2026-03-05 13:55:05 +00:00
Beth Probert
fa9ea77812 Ruff check 2026-03-05 13:42:55 +00:00
Beth Probert
48f6e1b369 Allow python and python3 as stitching commands. They are allowed. Move stitching tests into one file 2026-03-05 13:35:21 +00:00
Beth Probert
98e71207c5 Add forbidden windows commands to stitching and utilities to check for file name sanitation. Unit tests also added 2026-03-05 13:03:17 +00:00