Commit graph

3264 commits

Author SHA1 Message Date
jaknapper
9966cb0fbb Longer wait in exposure time test with fewer loops and lower exposure time 2025-06-24 15:55:19 +01:00
jaknapper
83832bf375 Update import name of recalibrate_utils 2025-06-24 15:53:57 +01:00
Julian Stirling
a43a82213d Improve docs for hardware specific tests 2025-06-24 14:07:58 +01:00
Julian Stirling
16dfe9073f Merge branch 'do-not-overwrite-globals' into 'v3'
Remove the overwriting of internal globals, requires removing future annoations

Closes #347

See merge request openflexure/openflexure-microscope-server!303
2025-06-24 10:55:43 +00:00
Julian Stirling
be07966631 Remove the overwriting of internal globals, requires removing future annoations 2025-06-24 10:18:30 +01:00
jaknapper
11c8f47e20 Rename central image to sharpest 2025-06-23 18:13:46 +01:00
jaknapper
7c3a9ad01f Copy sharpest image from stack, not the most average sharpness! 2025-06-23 18:08:27 +01:00
Julian Stirling
febb0d2690 Clarify white balance code. 2025-06-23 17:49:35 +01:00
Julian Stirling
cdae90013a Modify comment for clarity in the function that copies the lens shading algorithm 2025-06-23 16:24:40 +00:00
Julian Stirling
afea1e3658 Create function for flattening and rounding array and converting to a list 2025-06-23 17:22:28 +01:00
Joe Knapper
7435d15b65 Merge branch 'Bug-template-typo' into 'v3'
Correct spelling of Sangaboard

See merge request openflexure/openflexure-microscope-server!302
2025-06-23 16:12:25 +00:00
Joe Knapper
c6682f539d Correct spelling of Sangaboard 2025-06-23 15:37:16 +00:00
jaknapper
62a07622fa If not provided, find resize from image size when stitching 2025-06-23 15:09:18 +01:00
jaknapper
8ba40832e0 Neighbour cutoff moved from autofocus.py to scan_planners.py 2025-06-23 14:13:08 +01:00
jaknapper
2a0de9122b computed_field pydantic decorators 2025-06-23 14:04:30 +01:00
jaknapper
ee128ad91f Rename to StackParams, move undershoots into Params 2025-06-23 13:47:14 +01:00
Julian Stirling
c659ba8f5e Minor tidying to Picamera Thing 2025-06-23 13:07:26 +01:00
jaknapper
7cff0f8f44 StackInfo dataclass 2025-06-23 12:56:31 +01:00
Julian Stirling
dd63d74651 Removing mjpeg bitrate setter from UI and Python as it wasn't implemented fully and isn't a setting that should need changing 2025-06-23 12:39:41 +01:00
Julian Stirling
72faba0272 Fix issues found by linter in PiCamera Code
Issue #423 created based on lens shading TODOs
2025-06-23 12:39:25 +01:00
Julian Stirling
9f19434f58 Merge branch 'html-coverge-report' into 'v3'
Automatically create HTML coverage report each time PyTest runs

See merge request openflexure/openflexure-microscope-server!300
2025-06-23 11:14:18 +00:00
jaknapper
8fea35a663 Remove duplicate docstring 2025-06-23 12:05:52 +01:00
jaknapper
333ea1b644 More input validation and comments 2025-06-23 12:02:00 +01:00
Joe Knapper
7a7547542c Apply suggestions from code review of branch fast-stack
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2025-06-23 10:36:26 +00:00
Julian Stirling
0e3f4305b5 Tidy post refactor of cameras 2025-06-23 11:26:24 +01:00
Julian Stirling
4368dc3d90 Consolidate functionality into BaseCamera from Capture Thing and StreamingPicamera2 2025-06-23 11:26:22 +01:00
Julian Stirling
b5606984ae Consolidate the BaseCamera, CameraStub, and CameraProtocol, move StreamingPiCamera2 to this repo 2025-06-23 11:25:49 +01:00
jaknapper
628fd145f3 Cleaned up settling time maths to only calculate once 2025-06-23 11:25:49 +01:00
jaknapper
35e1d6cdee Remove unused actions in capture 2025-06-23 11:25:49 +01:00
jaknapper
4271c28045 More descriptive variable names in smart_scan, use resize in stitching with no default 2025-06-23 11:25:49 +01:00
jaknapper
7052917ff9 capture_image in stub raises NotImplemented 2025-06-23 11:25:49 +01:00
jaknapper
2f9e37a02f More descriptive timing variable names 2025-06-23 11:25:49 +01:00
jaknapper
985d20e032 Capture resolution as a Thing property 2025-06-23 11:25:49 +01:00
jaknapper
8c8c6568c3 Updated docstring for start_streaming 2025-06-23 11:25:49 +01:00
jaknapper
2d946637eb Added buffer_count as an argument of streaming 2025-06-23 11:25:48 +01:00
jaknapper
968bd339c2 SETTLING_TIME global in stacking 2025-06-23 11:25:37 +01:00
jaknapper
478c3629c9 Scan_resize from global vars, added to scan_data 2025-06-23 11:19:23 +01:00
jaknapper
52b58241cc Added copy_sharpest_image to autofocus 2025-06-23 11:19:23 +01:00
jaknapper
d39bcbaf5c Moved streaming changing to inner loop 2025-06-23 11:19:23 +01:00
jaknapper
0d32983b62 Only undershoot z stack if image count > 1, settle before first capture 2025-06-23 11:19:23 +01:00
jaknapper
744ec28f93 Get images as a PIL image from camera, use resizing and saving as settling time in stack 2025-06-23 11:19:20 +01:00
jaknapper
dbed1c6971 Default resize in stitching for scan tab stitching 2025-06-23 11:17:46 +01:00
jaknapper
9f2a131f1e Swap stream for scan, target_resolution as arg 2025-06-23 11:17:46 +01:00
jaknapper
f5c1ff2621 Ruff formating 2025-06-23 11:17:46 +01:00
jaknapper
17f3bbe646 Low res stream during scanning for instant high res captures 2025-06-23 11:17:46 +01:00
jaknapper
a9fdd0ea3e Wait params in captures, multiple attempts to capture 2025-06-23 11:17:46 +01:00
jaknapper
de7ffb9d1e Stream_name and capture_method args updated 2025-06-23 11:17:46 +01:00
jaknapper
8bc0573ab1 Capture_array can now use "full" stream 2025-06-23 11:17:46 +01:00
jaknapper
9d1385231d Rename jpeg_array to highres_array 2025-06-23 11:17:46 +01:00
jaknapper
132efa8033 Options for capture method, default downsampling of correlations 2025-06-23 11:17:45 +01:00