Commit graph

3494 commits

Author SHA1 Message Date
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
94eb331435 Merge branch 'add-fullscreen-toggle' into 'v3'
Add fullscreen toggle button.

Closes #390

See merge request openflexure/openflexure-microscope-server!377
2025-08-27 13:38:18 +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
98193189f8 Add fullscreen toggle button. 2025-08-21 18:48:31 +01:00
Julian Stirling
a0f7441a42 Merge branch 'prevent-broken-frames-ending-scans' into 'v3'
Prevent broken frames ending scans

Closes #431

See merge request openflexure/openflexure-microscope-server!374
2025-08-21 17:43:55 +00:00
Julian Stirling
3db16003b5 Update picamera_coverage.zip as base camera changed 2025-08-21 18:10:48 +01:00
Julian Stirling
9257c4489e Apply suggestions from code review of branch prevent-broken-frames-ending-scans
Co-authored-by: Beth Probert <beth_probert@outlook.com>
2025-08-21 18:05:46 +01:00
Julian Stirling
d5e2a48f32 Fix tests to catch correct error types 2025-08-21 16:21:09 +01:00
Julian Stirling
dade26cde1 Tweak a few error types. 2025-08-21 16:11:30 +01:00
Julian Stirling
95969c5daa Improve typehinting for logging 2025-08-21 15:49:00 +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
46be2c770e Merge branch 'tuning-tests-and-fixes' into 'v3'
Fix picamera default tuning being updated by calibrations, add tests

See merge request openflexure/openflexure-microscope-server!373
2025-08-21 12:23:47 +00:00
Julian Stirling
af53982b81 Update the picamera coverage zip 2025-08-21 12:47:02 +01:00
Julian Stirling
4e5317291f Improve robustness of the full_auto_calibrate test on PiCamera 2025-08-21 12:44:57 +01:00
Julian Stirling
0a9b6be9bd Raise error if tuning algorithm cannot be returned, unless explicityly asked not to 2025-08-21 12:44:57 +01:00
Julian Stirling
677fb8d988 Add more checks to the calibration test 2025-08-20 14:55:02 +01:00
Julian Stirling
fdae0b9226 Add get_tuning_algo method to StreamingPiCamera2 2025-08-20 14:53:53 +01:00
Julian Stirling
46be94383a Add more testing to aquisition test 2025-08-20 14:52:37 +01:00
Julian Stirling
c209d524c5 Split calibration and aquisition tests 2025-08-20 14:52:35 +01:00
Julian Stirling
ab0bece70b Deepcopy default tuning file so it isn't affected by calibration. 2025-08-20 14:51:19 +01:00
Julian Stirling
469562df4b Add failing unit test as default tuning is updated during calibration 2025-08-20 14:51:18 +01:00
Joe Knapper
99652eca41 Merge branch 'log-oom-error' into 'v3'
Custom sigkill error

See merge request openflexure/openflexure-microscope-server!351
2025-08-15 12:13:25 +00:00
Julian Stirling
46802db308 Merge branch 'check-static-files' into 'v3'
Check static files exist or throw a useful error

See merge request openflexure/openflexure-microscope-server!368
2025-08-15 11:22:41 +00:00
Joe Knapper
c2980dc988 Merge branch 'typehint-autofocus' into 'v3'
Typehints and better variable names for autofocus

Closes #271

See merge request openflexure/openflexure-microscope-server!367
2025-08-15 10:30:36 +00:00
Joe Knapper
f383365cf7 Apply suggestions from code review of branch typehint-autofocus
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2025-08-15 10:30:29 +00:00
Joe Knapper
7b2a4cc3f6 Merge branch 'camera-deps' into 'v3'
Change all CameraDeps to CameraClients

Closes #483

See merge request openflexure/openflexure-microscope-server!366
2025-08-15 10:16:36 +00:00
Joe Knapper
bd115e0023 Change all CameraDeps to CameraClients 2025-08-15 10:16:36 +00: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
44e24f42a6 Check webapp is available or give useful error 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
Joe Knapper
504b81fef6 Typehints and better variable names for autofocus 2025-08-14 14:51:03 +01:00
Julian Stirling
67ebb94d6c Add tests for not caching static files except fonts 2025-08-14 14:46:23 +01:00
Julian Stirling
98c023032c Allow fonts to cache 2025-08-14 14:45:20 +01:00
Joe Knapper
1e368aef81 Apply suggestions from code review of branch log-oom-error
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2025-08-14 14:09:54 +01:00
Julian Stirling
473a09442a Merge branch 'improve_calibration_modal' into 'v3'
Adjust z height in calibration modal

Closes #458

See merge request openflexure/openflexure-microscope-server!365
2025-08-14 11:19:48 +00:00
Chish36
0617a5a6a4 Added comment and removed unused method 2025-08-14 11:47:08 +01:00
jaknapper
213de461bb Update position and behaviour of +/- buttons 2025-08-13 17:43:43 +01:00
jaknapper
858ddf6edf Optional hideOnRun for action buttons 2025-08-13 17:42:52 +01:00
Julian Stirling
b552b39100 Merge branch 'update-ci-pipeline-epic2' into 'v3'
Update gitlab ci file

Closes #338

See merge request openflexure/openflexure-microscope-server!357
2025-08-13 15:18:16 +00:00
Beth Probert
c9d452932d Update gitlab ci file 2025-08-13 15:18:15 +00: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
Chish36
0de3f6df66 Added menu to modal to adjust z height 2025-08-13 15:42:32 +01:00
Joe Knapper
3b5df818d3 Merge branch 'calibration_modal_button' into 'v3'
Button added to launch calibration menu manually

Closes #532

See merge request openflexure/openflexure-microscope-server!360
2025-08-13 10:23:06 +00:00
Chish36
eb496e4cee Removed first menu from force show and created restart method 2025-08-12 19:08:30 +01:00
jaknapper
025e6b1fba Request no caching for static files like webapp 2025-08-12 18:47:02 +01:00
Chish36
e1aca0bef7 Button added to launch calibration menu manually 2025-08-12 18:02:30 +01:00