youkogawa GS200 range error
Open
Beginner friendly
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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