Commit graph

4687 commits

Author SHA1 Message Date
Julian Stirling
94a3fead9c Apply suggestions from code review of branch save-rom-data 2026-05-15 14:49:40 +01:00
jaknapper
78c01de6d5 Sharpness monitor accepting 0 as None 2026-05-15 14:43:23 +01:00
Joe Knapper
96d58a2d0f Merge branch 'no-dev-tools' into 'v3'
Remove dev tools from production app

Closes #768

See merge request openflexure/openflexure-microscope-server!582
2026-05-15 13:38:11 +00:00
Julian Stirling
3aa2571964 Update picamera test results 2026-05-15 13:24:37 +01:00
Richard Bowman
a66428b1b2 Fix a typo when calling _save_capture
I renamed `jpeg_path` to `path` as it's no longer just used for jpegs.
2026-05-15 13:14:28 +01:00
Richard Bowman
ee6911f4a7 PNG Capture
This adds an additional action to BaseCamera to capture and return a PNG Blob. It makes the PNG using Pillow, in a very similar way to `capture_jpeg`.

I have parametrized the test for `capture_jpeg` so it now tests both jpeg and png with the same code.
2026-05-15 13:14:27 +01:00
Julian Stirling
4aee0de945 Allow console logging when starting dev server 2026-05-15 12:59:40 +01:00
Julian Stirling
20e6cbc1a2 Apply suggestions from code review of branch no-dev-tools
Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
2026-05-15 12:55:19 +01:00
Julian Stirling
a31969d228 Add note about mdns speed 2026-05-15 12:55:19 +01:00
Julian Stirling
47dd746210 Apply suggestions from code review of branch no-dev-tools
Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
2026-05-15 12:55:19 +01:00
Julian Stirling
a265656984 Don't show error symbol when loading unless error 2026-05-15 12:55:19 +01:00
Julian Stirling
2b8d08c78c Use vite's development proxy for api-override 2026-05-15 12:55:18 +01:00
Julian Stirling
a58007a98c Remove the dev-tools for rediricting API from production app 2026-05-15 12:55:18 +01:00
Julian Stirling
59a93c673a Merge branch 'gallery-fixes' into 'v3'
Gallery fixes

See merge request openflexure/openflexure-microscope-server!591
2026-05-15 11:16:45 +00:00
Julian Stirling
177f1c437d Remove console.log from debugging 2026-05-15 12:01:40 +01:00
Julian Stirling
f0648a1613 Set gallery cursor for action or not allowed 2026-05-15 10:40:27 +00:00
Julian Stirling
425fccc684 Fix broken paginate links in gallery 2026-05-15 10:40:27 +00:00
Julian Stirling
714435f2d4 Fix unit tests for stage_measrue as an OFMThing 2026-05-14 16:49:29 +01:00
Chish36
5c128c1467 Removed settings, fixed saving issue and refactored 2026-05-14 15:58:26 +01:00
Joe Knapper
b646efa047 Merge branch 'hardware-test-exit' into 'v3'
Allow -x in hardware tests to fail fast

See merge request openflexure/openflexure-microscope-server!589
2026-05-14 13:39:14 +00:00
Chish36
03dc0a065f Save useful ROM data to data directory 2026-05-14 14:24:48 +01:00
Julian Stirling
5c3e228411 Reinstate unzip command in picamera tests 2026-05-14 12:51:22 +00:00
jaknapper
c673d2ab2a Picamera 2026-05-14 12:32:07 +01:00
jaknapper
f3f5141e81 Update readme 2026-05-14 11:58:47 +01:00
Joe Knapper
62aa377956 Allow -x in hardware tests to fail fast 2026-05-14 11:58:47 +01:00
Joe Knapper
182c67e105 Merge branch 'measure-framerate' into 'v3'
Measure framerate

See merge request openflexure/openflexure-microscope-server!583
2026-05-14 10:57:17 +00:00
Julian Stirling
7d84390404 Clean up temporary data dir in LabThingsTestEnv after test 2026-05-14 11:24:05 +01:00
jaknapper
9d68718570 Test picamera 2026-05-14 11:00:31 +01:00
jaknapper
cbfbd84fa9 Changes from review 2026-05-14 10:52:33 +01:00
jaknapper
5be8b0ecab Update tests, including picamera 2026-05-13 18:07:29 +01:00
jaknapper
1ea308a42d Move analysis and saving out of async 2026-05-13 17:54:36 +01:00
jaknapper
817c53d1df Data dir in cam_test_utils 2026-05-13 17:54:29 +01:00
Joe Knapper
3bbea44eaf Move saving data out of async, save as json 2026-05-13 17:54:29 +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
5a8e8f745a Update tests 2026-05-13 17:54:29 +01:00
jaknapper
800aea21dc Move to async monitoring 2026-05-13 17:54:29 +01:00
jaknapper
e9414cfb1d Update picamera tests 2026-05-13 17:54:29 +01:00
jaknapper
261b4272c2 Picamera test for framerate 2026-05-13 17:54:29 +01:00
jaknapper
44300eafd6 Measure framerate in non-blocking way 2026-05-13 17:54:29 +01:00
Joe Knapper
7450a0e47c Merge branch 'fom-af' into 'v3'
Record fom as other sharpness metric

Closes #615

See merge request openflexure/openflexure-microscope-server!578
2026-05-13 16:53:28 +00:00
jaknapper
d12ca97fac We are now a picamera testing organisation 2026-05-13 17:24:12 +01:00
Joe Knapper
07caa1f05f Looser typing of stage positions in autofocus 2026-05-13 17:14:42 +01:00
Joe Knapper
b1791833e2 Clean up data_to_array to not use get attr 2026-05-13 17:14:42 +01:00
jaknapper
563bfcf7be Update move_and_measure, add unit tests 2026-05-13 17:14:42 +01:00
jaknapper
e93d9777a2 Type checking help for libcamera requests 2026-05-13 17:14:37 +01:00
jaknapper
0e1d9cca18 Improvements to properties and docstrings 2026-05-13 17:14:37 +01:00
Joe Knapper
4d9669f8ae Add FoM to codespell regex ignore 2026-05-13 17:14:37 +01:00
Joe Knapper
1f5adbb1a5 Ruff 2026-05-13 17:14:37 +01:00
Joe Knapper
767e3992ff Add FoM to codespell ignore 2026-05-13 17:14:37 +01:00