microsoft / microsoft/Qcodes

Cannot step QCoDeS Instrument Parameter with numpy.int32, int16, int8

Open
#1,118 4 comments 0 reactions 1 assignee Claimed by @WilliamHPNielsen View on GitHub
Dominant language
Python
Stars
459
Forks
359
Avg merge
3d 6h
Merged PRs (30d)
73

Description

If you encounter a bug use the following template.
If you have a feature request feel free to freestyle.

qcodes issue:
Cannot set QCoDeS Instrument Parameter with numpy.int32, int16, int8 etc

### Steps to reproduce
1. create/connect to a real instrument (here: a QuTech D5a dac module)
2. try to set a value using a numpy int32 -> my_instrument.my_parameter(np.int31(1))
3.

### Expected behaviour
Instrument should be set normally (works with setting with normal floats, ints, or numpy floats)

### Actual behaviour
Nothing is set, following warning is printed. No exception is thrown. Response seems to be asynchronous.

`WARNING:root:cannot sweep dac9 from 9.002822919050914 to 1 - jumping`

Setting several values repeatedly in a loop causes the warnings to be printed in groups/ bursts.

### System
**operating system**
Windows 10

**qcodes branch**
v0.1.11 via pypi

**qcodes commit**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.