Commit graph

57 commits

Author SHA1 Message Date
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
Julian Stirling
b8bdb430b7 Do blur in PIL 2025-10-27 13:37:53 +00:00
Julian Stirling
5860b9be97 Add CSM steps to new calibration wizard. 2025-10-23 17:32:58 +01:00
Julian Stirling
0ebc507eff Add camera calibration steps into refactored calibration wizard. 2025-10-23 17:32:58 +01:00
Joe Knapper
a34a9f99c5 Apply suggestions from code review of branch sample-size-sim
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2025-10-06 10:16:22 +00:00
Joe Knapper
2fc92fc1ff Test sample and canvas size 2025-10-02 13:56:08 +01:00
Joe Knapper
3812e9053a Docstring fix 2025-09-26 17:16:55 +01:00
Joe Knapper
0a687e1678 Ruff 2025-09-25 18:51:33 +01:00
Joe Knapper
e6ba7f5a9b Merge branch 'sample-size-sim' of gitlab.com:openflexure/openflexure-microscope-server into sample-size-sim 2025-09-25 16:14:17 +01:00
Joe Knapper
bfe0064ce8 Update dummy test and fix sample coords 2025-09-25 16:14:13 +01:00
Joe Knapper
39b085a0c2 Apply suggestions from code review of branch sample-size-sim
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2025-09-25 13:35:55 +00:00
Joe Knapper
16bc7aeede Apply suggestions from code review of branch sample-size-sim
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2025-09-25 13:33:16 +00:00
Joe Knapper
d3aeb75ed9 Fixed centre typo 2025-09-25 12:52:17 +01:00
Joe Knapper
89214ea2ec Add sphinx docstrings, add sprites in a way to test sizes match 2025-09-25 12:05:49 +01:00
Joe Knapper
49070d4163 Generated limited size sample of larger blobs, move faster in xy 2025-09-24 19:31:11 +01:00
Joe Knapper
afcb02bf7e Increase density of blobs, limit range 2025-09-24 18:09:08 +01:00
Julian Stirling
65f172d650 Stop using print statments or root level loggers 2025-09-18 16:21:45 +01:00
Julian Stirling
2ce49088e7 Add return typehints to magic methods 2025-08-27 18:56:09 +01:00
Julian Stirling
4c46330959 Add ANN20X rules to ruff 2025-08-27 18:56:08 +01:00
Julian Stirling
24233412af Start adding ANN ruff rules 2025-08-27 18:54:15 +01:00
Julian Stirling
7cd6b11411 Further unification of camera array functionality 2025-08-27 17:14:49 +01:00
Julian Stirling
5484b51a1e Unify JPEG capture, metadata, and saving; reducing duplication 2025-08-27 17:14:49 +01:00
Julian Stirling
c31fffad5b Make simulation image wrap to prevent errors when moving out of range. 2025-08-26 16:03:56 +01:00
Julian Stirling
b672c3c2a7 Clarify docstring for Simulation start_streaming 2025-08-06 13:24:25 +01:00
Julian Stirling
8ce06991f9 Small tweaks to simulation camera to get scanning working. 2025-08-05 08:28:10 +01:00
Julian Stirling
e7e3a08210 Camera settings exposed in UI defined by server. 2025-07-31 20:56:55 +01:00
Julian Stirling
0794d4777f Camera calibration buttons specified by server. Simulation has option to remove sample 2025-07-31 20:56:55 +01:00
Julian Stirling
fe1b84a922 Complete first pass (untested on hardware) of bg detect refactor. 2025-07-24 17:07:50 +01:00
Julian Stirling
b5586a4b32 A partial refactor of background detect 2025-07-24 17:07:50 +01:00
Julian Stirling
31e3d15890 Add random noise to simulation image 2025-07-24 16:17:52 +01:00
Julian Stirling
5701225158 Update simulation canvas to have colour so it works with background detect. 2025-07-24 15:58:32 +01:00
Julian Stirling
b89449be77 Add camera-stage-mapping compliant functions to BaseStage and BaseCamera. 2025-07-13 21:55:55 +01:00
Julian Stirling
7e6017f648 Get codespell passing and add it as a CI job. 2025-07-11 00:16:25 +01:00
Julian Stirling
e33fecaef0 Documentation of python magic class methods 2025-07-10 16:46:10 +01:00
Julian Stirling
1bbbfeef0f Add docstrings to public methods 2025-07-10 14:04:48 +01:00
Julian Stirling
80beeea07b Add punctuation to docstrings 2025-07-10 09:24:50 +01:00
Julian Stirling
a84a916719 Restructured text fixes so that pydoctor would return without an error 2025-07-09 23:59:08 +01:00
Julian Stirling
52a80ef66b And adjust for new as lt import 2025-07-07 15:25:14 +01:00
Julian Stirling
840ed7f20e Update Thing Settings to use the new format provided by PR #110 of Labthings FastAPI 2025-07-07 15:24:30 +01:00
Julian Stirling
5e6aeb9bbf Move SangaboardThing into repo 2025-07-02 16:42:38 +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
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
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
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