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

Using a data processor on level 1 data produces a RuntimeWarning #1071

Closed
wshanks opened this issue Mar 8, 2023 · 1 comment
Closed

Using a data processor on level 1 data produces a RuntimeWarning #1071

wshanks opened this issue Mar 8, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@wshanks
Copy link
Collaborator

wshanks commented Mar 8, 2023

Informations

  • Qiskit Experiments version: 0.4.0
  • Python version: 3.10
  • Operating system: Linux

What is the current behavior?

Every time a data processor is used on level 1 data a RuntimeWarning is generated by numpy.

Steps to reproduce the problem

from qiskit_experiments.data_processing import DataProcessor, nodes
processor = DataProcessor("memory", [nodes.MinMaxNormalize()])
processor({"memory": [0, 1, 2]})

This produces

/home/wshanks/.conda/envs/qiskit/lib/python3.10/site-packages/numpy/lib/function_base.py:2411: RuntimeWarning: invalid value encountered in <lambda> (vectorized)
  outputs = ufunc(*inputs)

What is the expected behavior?

As this is standard usage, no warning should be generated.

Suggested solutions

See #1070.

@wshanks wshanks added the bug Something isn't working label Mar 8, 2023
@wshanks
Copy link
Collaborator Author

wshanks commented Mar 14, 2023

Closed by #1070

@wshanks wshanks closed this as completed Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant