Commit graph

3892 commits

Author SHA1 Message Date
jaknapper
18e49ba50c Test stack params at start of scan main loop 2025-10-09 14:22:37 +01:00
Julian Stirling
6a2d69ed04 Merge branch 'primary-buttons' into 'v3'
Clean up primary vs secondary buttons

Closes #554

See merge request openflexure/openflexure-microscope-server!402
2025-10-07 14:15:45 +00:00
Joe Knapper
dae5b816cc Merge branch 'sample-size-sim' into 'v3'
Simulate a rectangular sample

Closes #516

See merge request openflexure/openflexure-microscope-server!401
2025-10-07 10:09:37 +00:00
Julian Stirling
92b14265d1 Update picamera test results 2025-10-07 10:59:18 +01:00
Julian Stirling
7d794d1a22 Stop showing other picamera calibration buttons in calibration wizard 2025-10-07 10:52:06 +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
jaknapper
a2facca43e Clean up primary vs secondary buttons 2025-10-02 16:16:32 +01:00
Joe Knapper
2fc92fc1ff Test sample and canvas size 2025-10-02 13:56:08 +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
3812e9053a Docstring fix 2025-09-26 17:16:55 +01: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
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
Julian Stirling
91c4fb22db Remove checks that purge empty scans is run in run_scan as it has moved 2025-09-25 15:16:23 +01: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
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
0e5517d45c Fix another hardcoded linux test 2025-09-25 12:04:39 +01:00
Julian Stirling
b3285f53f7 Merge branch '520-make-walkthroughs-for-software-installation' into 'v3'
Resolve "Make Walkthroughs for Software Installation"

Closes #520

See merge request openflexure/openflexure-microscope-server!399
2025-09-25 11:03:53 +00:00
Beth Probert
1b4d83ae5d Resolve "Make Walkthroughs for Software Installation" 2025-09-25 11:03:53 +00: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
cd6bcd196f Don't show buttons for ongoing scans. 2025-09-19 18:29:34 +01:00
Julian Stirling
29a62a278b Update scan card to use computed properties and request new thumb if modified date changed 2025-09-19 17:49:28 +01:00
Julian Stirling
6e74b07f46 Merge branch 'dark-mode-disable-button' into 'v3'
Action buttons can show as disabled in dark mode

Closes #549

See merge request openflexure/openflexure-microscope-server!386
2025-09-19 16:33:19 +00:00
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