microsoft / microsoft/Qcodes

youkogawa GS200 range error

Open Beginner friendly
#8,168 3 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

yokogawa GS200 has a range description CMD as 10V,However when the range is set to 10V,the actually range is 0-12v

in Yokogawa_GS200.py

from line 160~165 maybe change to this to fix this bug

        # If we are still out of range, raise a value error
        if (abs(output_level) > abs(self_range)*1.2) or (abs(output_level)>32):
            raise ValueError(
                "Desired output level not in range"
                f" [-{self_range:.3}, {self_range:.3}]"
            )

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 in Yokogawa_GS200.py around lines 160–165 and inspect how the 10 V range is validated against the instrument's actual 0–12 V output range. Reproduce setting the GS200 to 10 V and verify that valid output levels are accepted while levels beyond the supported range still raise the documented ValueError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.