Should CCM be an action or a property

Open
#16 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
fastapi, python

Research direction

Start by reading the existing CCM property and its Control implementation, focusing on the restart requirement when setting the colour correction matrix. Decide whether CCM should be read-only with a separate action, and define whether reset restores only the static CCM or the whole default tuning; done means the API design and reset behavior are unambiguous.

Written by the indexing model from the issue text.

Description

Setting the colour correction matrix requires restarting the camera. It may be that this means CCM should not be a writeable property. A read-only property based on the Control (i.e. previous implementation) combined with an action to set a static CCM might be the most consistent way of doing this.

Resetting the CCM should probably also restore the whole default tuning, rather than a single static CCM, but this isn't a major problem for now.

Dominant language
Python
Stars
3
Forks
2
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from labthings/labthings-picamera2

All issues in labthings/labthings-picamera2

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.