Commit graph

104 commits

Author SHA1 Message Date
Julian Stirling
08e58a3c1d Fix docstrings 2026-06-05 16:58:35 +01:00
Julian Stirling
e3361ebec8 Update cameras inline with base camera rebase 2026-06-05 16:58:35 +01:00
Julian Stirling
aff860a086 Refactor camera streaming into modes 2026-05-27 08:43:10 +01:00
Joe Knapper
271c45b873 Scale blur in simulator based on objective 2026-04-09 16:16:59 +01:00
Joe Knapper
25c733a0c3 Apply suggestions from code review of branch check-setting-validation
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2026-03-07 18:14:22 +00:00
Joe Knapper
c9cc4e8468 Apply suggestions from code review of branch check-setting-validation
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2026-03-07 18:14:22 +00:00
Joe Knapper
99b9b0f3d6 Add limits to noise level, sample density and downsample 2026-03-07 18:14:22 +00:00
Julian Stirling
eb21ca9aef Apply suggestions from code review of branch simulator-zoom
Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
2026-02-19 10:37:57 +00:00
Julian Stirling
80c78fbc5e Refactor image simulation for speed 2026-02-18 20:20:00 +00:00
Joe Knapper
94a9c2be8f Use options argument in UI for objective 2026-02-18 16:59:29 +00:00
Joe Knapper
01012f52a3 Crop canvas based on objective property 2026-02-18 16:59:27 +00:00
Julian Stirling
752ef3a80c Reduce the blur for a given z movement in simulation, to improve autofocus. 2026-02-17 02:07:06 +00:00
Joe Knapper
bb5cce3d4e Only generate frame if LED is on 2026-02-12 13:54:12 +00:00
Joe Knapper
fdf33ce4a8 Apply suggestions from code review of branch flash-led-sim
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2026-02-12 13:48:12 +00:00
Joe Knapper
16458db85b Fix simulated imports 2026-02-11 10:26:04 +00:00
Joe Knapper
676d34842a Apply suggestions from code review of branch flash-led-sim
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2026-02-11 10:19:19 +00:00
Joe Knapper
4d788a2817 Remove flash from stage baseclass, add to sim config 2026-02-10 22:19:49 +00:00
jaknapper
5682b4d28d Illumination Things for sangaboard and simulator 2026-02-10 18:42:59 +00:00
Joe Knapper
1de4366df7 Flash LED endpoint in simulator for parity 2026-02-10 15:59:18 +00:00
Julian Stirling
ca46439269 Rename "active_detector" for background detecor. Improve thing selector coercion 2026-01-14 15:10:13 +00:00
Julian Stirling
3e8874188e Get UI working for background detector things 2026-01-14 10:05:04 +00:00
Julian Stirling
0bba613a4b Apply suggestions from code review of branch fast-sim
Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
2026-01-13 11:45:32 +00:00
Julian Stirling
51d6bdb991 Fully generate simulation sample canvas before setting to class attribute 2026-01-13 11:34:49 +00:00
Julian Stirling
4c557612fb Apply suggestions from code review of branch fast-sim
Co-authored-by: Richard Bowman <richard.bowman@cantab.net>
Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
2026-01-12 17:41:51 +00:00
Julian Stirling
0abbd827fd Remove exception block from simulation that only silence errors and errors that are impossible to reach 2026-01-12 16:17:11 +00:00
Julian Stirling
8f52841f67 Add tests for new simulated camera poperites that update the canvas 2026-01-12 16:17:11 +00:00
Julian Stirling
fa89f24477 Type fixing for simulation camera 2026-01-12 16:17:11 +00:00
Julian Stirling
fc3ca8cbe7 Slightly increase glyph shape so that blob cannot touch edge 2026-01-12 16:17:10 +00:00
Julian Stirling
980af66548 Let lists of colours be set for simulation sample. 2026-01-12 16:17:10 +00:00
Julian Stirling
11379d8fa7 Allow colour to be set for simulation sample. 2026-01-12 16:17:10 +00:00
Julian Stirling
7b9f4aa202 Expose sample density and sample repeat for simulation camera to the UI in camera settings rather than as init options 2026-01-12 16:17:10 +00:00
Julian Stirling
159e2d14ab Unify canvas and sample shape for simulation, set flag for if repeating. 2026-01-12 16:17:10 +00:00
Julian Stirling
99f7802195 Create sprites upsampled, before downsampling so they hhave a smoother edge interpolation 2026-01-12 16:17:10 +00:00
Julian Stirling
fa249a0f24 Calculate simulation images downsampled for speed 2026-01-12 16:17:10 +00:00
Julian Stirling
99eee2e912 Fix camera type issues 2026-01-09 15:18:05 +00:00
Julian Stirling
51512f36f7 Unify UI for action_button_for and property_control_for 2026-01-09 15:18:04 +00:00
Julian Stirling
afbc00acef Improve __enter__ typing for things 2026-01-09 15:18:04 +00:00
Julian Stirling
e0c63ab354 Unify camera capute signatures 2026-01-09 15:18:04 +00:00
Julian Stirling
4060c06a2b Assorted type fixes 2026-01-09 15:18:04 +00:00
Julian Stirling
99f3d2d311 Start fixing some issues found by MyPy 2026-01-09 15:18:04 +00:00
Julian Stirling
a67afdf21f Fix bug in simulation frame timing which may be affecting integration test 2025-12-16 13:32:57 +00:00
Julian Stirling
cfbb7cf7f9 Start fixing tests. This involves further blocking portal changes.
This will need PR 225 of labthings-fastapi to be merged to run.
2025-12-14 19:21:06 +00:00
Julian Stirling
e7f669cb56 No blocking portals 2025-12-14 18:23:33 +00:00
Julian Stirling
ca3f339cbe Simulation camera get dummy stage from thing_slot 2025-12-14 18:23:33 +00:00
Julian Stirling
5d3aa71b4f Update things to have thing_server_interface, and further fixes to properties 2025-12-14 18:23:27 +00:00
Julian Stirling
5eea78cac7 update action, property, and setting syntax for labthings-fastapi 0.0.12 2025-12-14 18:23:26 +00:00
Julian Stirling
7bc4c514a6 Autofix import order 2025-12-02 16:26:15 +00:00
Julian Stirling
551e392e91 Merge branch 'pil-simulation' into 'v3'
Improve simulation frame rate

See merge request openflexure/openflexure-microscope-server!419
2025-10-27 14:29:55 +00:00
Julian Stirling
d27948a155 Reduce time jitter in simulation. 2025-10-27 13:37:53 +00:00
Julian Stirling
c8a028e27c And file coms in PIL 2025-10-27 13:37:53 +00:00