microsoft / microsoft/Qcodes

Allow adding parameters to Monitor using station.add_component

Open
#1,873 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hi,

I have a small feature pull request. To my knowledge, it is not currently possible to add parameters to the Monitor through the station object without using load_instrument. This change allows adding e.g. standalone parameters to the monitor, or instrument parameters after using load_instrument.

Changes proposed:

  • Add a parameter to Monitor when using station.add_component, if add_to_monitor argument is True (default False).
  • Using remove_component also deletes the parameter from Monitor (current implementation seems to assume that the component is an instrument)

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 tracing station.add_component and remove_component, then inspect how Monitor and load_instrument currently handle parameters. Confirm the existing behavior for instrument and standalone parameters. Done means add_component can optionally add a parameter when add_to_monitor is true, while remove_component also removes that parameter from Monitor.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.