Joe Knapper
fa6fdb1a67
Stack parameter coercion in create_stack_params
...
Co-authored with Julian Stirling
2025-10-09 14:23:47 +01:00
Joe Knapper
33ff356f76
Apply suggestions from code review of branch stack-height-sanitise
...
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2025-10-09 14:22:48 +01:00
Richard Bowman
c89db72d0a
Don't coerce or log from validators.
...
Passing a logger in to the Model is hard: I've changed the
StackParams model so that it only validates, and raises a
ValueError if it's not correct.
Pydantic will turn the ValueError into a ValidationError.
2025-10-09 14:22:45 +01:00
Joe Knapper
05e0394485
StackParams as pydantic basemodel with validators
2025-10-09 14:22:42 +01:00
Joe Knapper
f90e716d8e
Stack limits as globals
2025-10-09 14:22:40 +01:00
jaknapper
18e49ba50c
Test stack params at start of scan main loop
2025-10-09 14:22:37 +01:00
Julian Stirling
4345f8c336
Merge branch 'tweak-scan-list' into 'v3'
...
Scan list improvements
Closes #391
See merge request openflexure/openflexure-microscope-server!397
2025-09-29 08:55:13 +00:00
Joe Knapper
3deb5a4897
Merge branch 'cancel-scan-early-bugfix' into 'v3'
...
Fix error trying to purge empty scans if current scan has no images
Closes #563
See merge request openflexure/openflexure-microscope-server!398
2025-09-26 09:33:21 +00:00
Julian Stirling
14cc3f9fcf
Fix error trying to purge empty scans if current scan has no images
...
Closes #563
2025-09-25 15:12:34 +01:00
Beth Probert
1b4d83ae5d
Resolve "Make Walkthroughs for Software Installation"
2025-09-25 11:03:53 +00:00
Julian Stirling
cd6bcd196f
Don't show buttons for ongoing scans.
2025-09-19 18:29:34 +01:00
Julian Stirling
b9ca8b3094
Apply suggestions from code review of branch Increased-linting
...
Co-authored-by: Beth Probert <beth_probert@outlook.com>
2025-09-19 10:16:47 +00:00
Julian Stirling
6b1e40f689
Add flake8-simplicity rules
2025-09-18 16:21:45 +01:00
Julian Stirling
528c6a2b63
Add PyLint ruff checks
2025-09-18 16:21:45 +01:00
Julian Stirling
65f172d650
Stop using print statments or root level loggers
2025-09-18 16:21:45 +01:00
Julian Stirling
338d49f9e6
Remove remaining TODOs in favour of issues
2025-09-18 16:10:36 +01:00
Julian Stirling
ef89b536fc
Remove assert statements from production code
2025-09-18 16:10:36 +01:00
Julian Stirling
e89ad93535
Specify the camera board not the sensor model during configuration.
2025-09-18 13:00:46 +01:00
Julian Stirling
ca66234379
Apply suggestions from code review of branch reorganise-picamera-tuning-and-recal
...
Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
2025-09-18 13:00:46 +01:00
Julian Stirling
f24272bc7f
Set sensor_model as kwarg to SteamingPicameraThing. From this load sensor information.
2025-09-18 13:00:46 +01:00
Julian Stirling
c16a0391df
Divide up tuning file modification from camera actions for recalibration.
...
* Ensure that funtions only called locally by recalibrate utils are private
* Move public API to the top of the recalibrate utils file
* Move files that only alter the tuning dictionary to their own file
This makes the recalibration API used by PiCamera much more clearly defined, which
helps to plan out how to allow for different models.
2025-09-18 13:00:46 +01:00
jaknapper
5566125e6e
Update picamera file to HQ parameters
2025-09-18 13:00:46 +01:00
jaknapper
22e7ce4ef0
Change background detect to use lores stream for consistent stream even when scanning.
2025-09-17 17:02:23 +01:00
Joe Knapper
9973221ed9
Merge branch 'neighbour-ratio' into 'v3'
...
Change neighbour ratio to dx and dy
See merge request openflexure/openflexure-microscope-server!371
2025-09-05 10:56:29 +00:00
jaknapper
980b1e5187
Type hints to inits in scan planners
2025-09-05 11:22:43 +01:00
jaknapper
ce5a22eb64
Added neighbour ratio to spiral scan init
2025-09-05 10:55:21 +01:00
Julian Stirling
8500b479f5
No Never returns from actions in base Thing classes
2025-08-28 09:13:44 +01:00
Julian Stirling
8f78369aaf
fixup! Add ANN20X rules to ruff
2025-08-27 18:56:19 +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
d673196671
Add ANN002, and ANN003 rules
2025-08-27 18:54:16 +01:00
Julian Stirling
24233412af
Start adding ANN ruff rules
2025-08-27 18:54:15 +01:00
Julian Stirling
b46f429c1f
Apply suggestions from code review of branch unify-jpeg-capture
...
Co-authored-by: Richard Bowman <richard.bowman@cantab.net>
2025-08-27 17:30:51 +01:00
Julian Stirling
5bb742881f
Fix typehints and docs for opencv camera
2025-08-27 17:30:51 +01:00
Julian Stirling
b124355fed
Fix capture array for raw stream
2025-08-27 17:14:49 +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
4450fda945
Merge branch 'simulation_wrap' into 'v3'
...
Make simulation image wrap to prevent errors when moving out of range.
Closes #513
See merge request openflexure/openflexure-microscope-server!380
2025-08-27 16:13:24 +00:00
Julian Stirling
2325dced5e
Merge branch 'test-server-startup' into 'v3'
...
Test server startup
See merge request openflexure/openflexure-microscope-server!379
2025-08-27 16:11:34 +00:00
Julian Stirling
19ae7e9802
Merge branch 'pydantic-syntax' into 'v3'
...
Update BaseModels to use ConfigDict rather than directly use a dictionary
See merge request openflexure/openflexure-microscope-server!381
2025-08-27 16:10:28 +00:00
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
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
7f7809de9d
Update BaseModels to use ConfigDict rather than directly use a dictionary
2025-08-26 16:12:41 +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
2d89cdd3a3
Add tests for the legacy api
2025-08-24 20:45:55 +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
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