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
jaknapper
26163dc97e
Added a new way to capture full res JPEGs, need to do a comparison of results
2025-06-23 11:17:45 +01:00
jaknapper
ab33de7ccd
Capture a jpeg to disk
2025-06-23 11:17:45 +01:00
jaknapper
d8878e40da
Stacking in autofocus with temp capture Thing
2025-06-23 11:17:45 +01:00
jaknapper
46458ca8a1
Create a stack folder and copy the middle image to image_dir
2025-06-23 11:17:45 +01:00
jaknapper
a1784941fe
Ruff formatting and removing all capturing from smart_scan
2025-06-23 11:17:45 +01:00
jaknapper
603b9c7d16
Functional z stack Thing
2025-06-23 11:17:45 +01:00
jaknapper
a001da0bcb
Restore closest_focus_site function
2025-06-20 15:01:09 +01:00
Joe Knapper
d1ed7ec797
Apply suggestions from code review of branch fast-stack
2025-06-20 11:26:58 +00:00
Joe Knapper
006d3b2a7b
Apply suggestions from code review of branch fast-stack
...
Co-authored-by: Beth Probert <beth_probert@outlook.com>
2025-06-20 11:23:14 +00:00
jaknapper
ce33b94aab
Capture as a Raw dependency to use methods that aren't actions
2025-06-20 12:19:07 +01:00
Julian Stirling
cdf23bc403
Add a timeout when shutting down the server.
...
The browser needs to be closed for graceful shutdown. If the browser
is left open the microscope may never shut down as it is waiting on
the uvicorn process to finish. This causes potential SD card issues.
This forces the server to force shutdown if it doesn't exit gracefully in
2 seconds.
2025-06-19 16:25:43 -04:00
jaknapper
6cf2f4d8c3
Typehints and docstrings in z_stack
2025-06-19 14:58:16 +01:00
jaknapper
00321d761d
Update docstring for nearby focus site
2025-06-19 14:57:27 +01:00
jaknapper
6acfbaefd6
Split up z stack function
2025-06-18 18:36:21 +01:00
jaknapper
c0677858a1
Scan planner finds lowest neighbour, not most recent
2025-06-18 15:40:21 +01:00
jaknapper
e8c4103bb0
Remove unneeded logging
2025-06-17 14:34:42 +01:00
jaknapper
f363ec0eff
Docstring for test_stack
2025-06-17 14:34:42 +01:00
jaknapper
dbb65d55b5
Use scan autofocus dz
2025-06-17 14:34:42 +01:00
jaknapper
cdd603d751
Capture the full stack requested
2025-06-17 14:34:42 +01:00
jaknapper
0671f2d1be
Backlash correction as global, more comments
2025-06-17 14:34:42 +01:00
jaknapper
712f524414
Looping autofocus on failed smart stack
2025-06-17 14:34:42 +01:00
jaknapper
3e164102f6
A stack that tests whether the sharpest image is towards the middle
2025-06-17 14:34:42 +01:00
Julian Stirling
1c54d25212
Add ruff checking for unnecessary comprehensions
2025-06-10 16:07:49 +01:00
Julian Stirling
2050c2dc7c
Add return checker, needed 4 fixes
2025-06-10 16:07:48 +01:00
Julian Stirling
3f0564f253
Turning on more lint checkers, warning for cameras that ignore resolution setting
2025-06-10 16:07:48 +01:00
Joe Knapper
ae2ec1864f
Merge branch 'config-scan-dir' into 'v3'
...
Add scan directory to json config
Closes #393
See merge request openflexure/openflexure-microscope-server!283
2025-06-09 13:42:27 +00:00
Chish36
7eed48ed26
Swapped the order of CSM so y axis is completed first
2025-06-09 13:39:06 +00:00
Julian Stirling
3a1c3bb026
Ensure server and config vars always defined before fallback server is started
2025-06-06 12:42:21 +01:00
Julian Stirling
b45f5651ab
Add scan directory to json config
2025-06-06 12:21:51 +01:00
Joe Knapper
08d1371569
Apply 1 suggestion(s) to 1 file(s)
...
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2025-06-06 10:25:34 +00:00
Joe Knapper
69db7b4041
Apply 2 suggestion(s) to 1 file(s)
...
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2025-06-05 17:09:37 +00:00
Joe Knapper
41f6c8879a
RATIO as a global, better naming and splitting of generate_image()
2025-06-05 15:03:26 +01:00
Joe Knapper
2db895a1fc
Defocus and realign simulation axes
2025-06-05 12:09:01 +01:00