Commit graph

3613 commits

Author SHA1 Message Date
Julian Stirling
2fd3a8f696 Split scan cards and scan list components 2025-09-19 17:17:07 +01:00
Julian Stirling
24e5749f50 Remove commented out CSS in scanListContent 2025-09-19 15:19:37 +01:00
Julian Stirling
b1da2cc514 Merge branch 'Increased-linting' into 'v3'
Enable all lint checkers, remove ruff-increased-checking job!

Closes #548

See merge request openflexure/openflexure-microscope-server!395
2025-09-19 10:47:26 +00: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
b4e28e232e Rerun picamera tests 2025-09-18 16:31:39 +01:00
Julian Stirling
3227c0cddf Remove ruff-increased-checking.toml as all checker are now on! 2025-09-18 16:21:45 +01:00
Julian Stirling
6b1e40f689 Add flake8-simplicity rules 2025-09-18 16:21:45 +01:00
Julian Stirling
d7d1f42b2c Enable PyTest ruff checks 2025-09-18 16:21:45 +01:00
Julian Stirling
4655300910 Pin ruff version, allowing only bugfix updates
Closes #548
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
6d8cb299aa Merge branch 'reorganise-picamera-tuning-and-recal' into 'v3'
Allow both HQ camera or PiCamera v2

See merge request openflexure/openflexure-microscope-server!394
2025-09-18 14:50:39 +00:00
Julian Stirling
82f9753c02 Update picamera test results 2025-09-18 13:07:29 +01:00
Julian Stirling
9c20c18230 Remove mock for loading tuning file during test as it no longer needs to talk to hardware. 2025-09-18 13:00:46 +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
2ba8f3d6fb Update picamera_tests.py to hash picamera_tuning_file_utils.py 2025-09-18 13:00:46 +01:00
Julian Stirling
283a64b94a Add kwarg to picamera Thing in configuration file. 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
Joe Knapper
3fb6013cd8 Merge branch 'background-stream' into 'v3'
Start swapping streams when checking background

Closes #546

See merge request openflexure/openflexure-microscope-server!387
2025-09-18 10:44:07 +00:00
jaknapper
96c61ad14c Update picamera test coverage results 2025-09-17 17:04:00 +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
Julian Stirling
fd70c8a558
Merge branch 'reload-background-tab' into 'v3'
Reload background detect settings when tab opened

Closes #551

See merge request openflexure/openflexure-microscope-server!385
2025-09-09 16:24:36 +00:00
Julian Stirling
d6e8a9a9b3
Merge branch 'better-modal-formatting' into 'v3'
Format values in value confirmation modal to prevent overflow.

Closes #545

See merge request openflexure/openflexure-microscope-server!384
2025-09-08 12:23:30 +00:00
jaknapper
87a5c895d8 action buttons can show as disabled in dark mode 2025-09-05 17:36:37 +01:00
jaknapper
de0e74820c Reload background detect settings when tab opened 2025-09-05 17:27:34 +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
764d34c766 Format values in value confirmation modal to prevent overflow. 2025-08-28 18:41:58 +01:00
Julian Stirling
bb29c50032 Merge branch 'tweak-property-controls' into 'v3'
Improve property control UI

Closes #456

See merge request openflexure/openflexure-microscope-server!383
2025-08-28 17:30:51 +00:00
Julian Stirling
cb62bc3cc6 Merge branch 'ANN-rules' into 'v3'
Enable ruff checks for type annotations

See merge request openflexure/openflexure-microscope-server!382
2025-08-28 17:30:47 +00:00
Julian Stirling
a391d41750 Improve comments for inputFromSchema value setting 2025-08-28 17:47:01 +01:00
Julian Stirling
4fe922cbfc Improve tooltip text 2025-08-28 17:36:04 +01:00
Julian Stirling
acb24d9713 Fix accept animation in chrome 2025-08-28 17:21:51 +01:00
Julian Stirling
212b8fe062 Colour propery box on input, flash green on update, only modal notify if value is not set exactly 2025-08-28 14:44:34 +01:00
Julian Stirling
80ee303ac9 Update the reload property button next to property controls 2025-08-28 11:12:19 +01:00
Julian Stirling
823456dbc2 Refresh property value if failed to set. 2025-08-28 11:11:27 +01:00
Julian Stirling
51f0ac3d82 Update Picamera coverage data 2025-08-28 09:34:30 +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
154f063ab3 Merge branch 'unify-jpeg-capture' into 'v3'
Deduplicating camera functionality

Closes #299, #429, and #355

See merge request openflexure/openflexure-microscope-server!378
2025-08-27 17:14:41 +00:00