Commit graph

92 commits

Author SHA1 Message Date
Julian Stirling
5df5651fc2 Adjust name for a number of propery/setting setters 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
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
ddc81f9c17 Apply suggestions from code review of branch update-for-labthings0.0.12
Co-authored-by: Richard Bowman <richard.bowman@cantab.net>
2025-12-16 13:32:57 +00:00
Julian Stirling
baf0ff9a11 Updating for changes related to NotConnectedToServerErrors 2025-12-15 17:18:30 +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
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
5017fea9d1 A couple of final edits suggested in review 2025-12-02 09:57:25 +00:00
Julian Stirling
79c94c96ed Set channel minima and error if any LUV channels have std==0 2025-12-02 09:57:24 +00:00
Julian Stirling
982c55905c Update default exposure in picam and defaul LST values in tuning files, and set default colour gains from LST 2025-11-11 11:20:08 +00:00
Julian Stirling
13d3871059 Add testing for loading the tuning files in the normal test suite now not tied to picamera 2025-11-11 11:20:08 +00:00
Julian Stirling
6763845e38 Let the tuning file utils handle lens shading table manipulation. 2025-11-11 11:20:08 +00:00
Julian Stirling
ec16cc17f8 Update tuning file utils for our own tuning files. 2025-11-11 11:20:07 +00:00
Julian Stirling
01a883e95c Reset CCM resets to the CCM in the default tuning file. 2025-11-11 11:20:07 +00:00
Julian Stirling
a2900b0c16 Move tuning files into vc4 folder in case we support pisp (Pi5) later and update README 2025-11-11 11:20:07 +00:00
jaknapper
1b14990b76 Stop overwriting CCM in full recalibrate
Fix typo
2025-11-11 11:20:06 +00:00
Julian Stirling
ee2ef848b1 Add native implementation of find_tuning_algo 2025-10-29 13:08:10 +00:00
Julian Stirling
815b112069 Update the picamera tuning file utilities to not modify the dictionaries in place 2025-10-29 13:08:10 +00:00
Julian Stirling
2bc315f85d Update picamera cal docstring now white balance isn't its own method. 2025-10-28 14:00:02 +00:00
jaknapper
ba3f7f6cf5 Remove unused code, add comments 2025-10-28 14:00:01 +00:00
jaknapper
506693f653 Set colour gains directly from Lens Shading Table 2025-10-28 13:58:53 +00:00
Julian Stirling
c0a8d15628 Add calibration_required property to Camera and CSM things. 2025-10-23 17:32:58 +01:00
jaknapper
f8ee71b9c0 Make thing state mutable within the method 2025-10-23 10:38:10 +01:00
jaknapper
e0ce40607b Fix property name and call 2025-10-23 10:38:10 +01:00
Joe Knapper
b1413ca66c Camera metadata with basic data 2025-10-23 10:38:10 +01:00
jaknapper
ab0e00eb1d Fix ruff 2025-10-21 15:30:47 +01:00
jaknapper
d913db92af CCM for HQ cam also 2025-10-21 15:14:42 +01:00
jaknapper
18ad404a57 Set colour correction to interpolate value
Update hardware test readme

Add pause between calibrating camera and setting background
2025-10-21 13:37:50 +01:00
Joe Knapper
909de1709d set ce_enable in tuning_utils 2025-10-09 15:36:01 +01:00
Julian Stirling
7d794d1a22 Stop showing other picamera calibration buttons in calibration wizard 2025-10-07 10:52:06 +01:00
jaknapper
a2facca43e Clean up primary vs secondary buttons 2025-10-02 16:16:32 +01:00
Julian Stirling
65f172d650 Stop using print statments or root level loggers 2025-09-18 16:21:45 +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
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
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
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
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
0a9b6be9bd Raise error if tuning algorithm cannot be returned, unless explicityly asked not to 2025-08-21 12:44:57 +01:00
Julian Stirling
fdae0b9226 Add get_tuning_algo method to StreamingPiCamera2 2025-08-20 14:53:53 +01:00