Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

numpy types (e.g. int, float) with bit size 8, 16, 32 and 64, etc. not recognized as as non_array_type by data saver #1224

Closed
sohailc opened this issue Aug 9, 2018 · 0 comments
Assignees
Labels

Comments

@sohailc
Copy link
Member

sohailc commented Aug 9, 2018

We cannot insert numpy types via the data saver. To reproduce:

from qcodes import Parameter
from qcodes.dataset.measurements import Measurement
from qcodes.dataset.experiment_container import new_experiment

exp = new_experiment("name", "sample")

x = Parameter("x", set_cmd=None, get_cmd=None)

meas = Measurement()
meas.register_parameter(x)

with meas.run() as datasaver: 
    datasaver.add_result((x, np.float16(1.0)))  # Fails with np.int8, np.int16, etc as well. 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant