microsoft / microsoft/Qcodes

updating parameter validators

Open
#126 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

discussion
Dominant language
Python
Stars
459
Forks
359
Avg merge
3d 6h
Merged PRs (30d)
73

Description

Right now we can give parameters a `Validator` at construction, but it is not possible to update the validator. We can call `_set_vals`, but the underscore suggests we should not do this as a user.

Do we want to enable setting the Validator? This would make it possible to set validators for instruments depending on the hardware that is attached.

Contributor guide

Open the contributing guide

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.

Research direction

Start by locating the Parameter construction path and the existing _set_vals handling for Validator. Review how validators are stored and used, then determine the public update behavior needed for hardware-dependent instruments. Define completion with tests covering validator updates and subsequent parameter validation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.