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

Change -1 argument to None, change import name to avoid warning #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

colbeyhair
Copy link

When calling the read_raw argument of the visa resource, the default argument of -1 yields the following error:
ValueError: Array length must be >= 0, not -1

Changing the argument to 'None' removes this error.

This argument is ultimately passed to the _read_raw function in pyvisa, for which the default argument is None. Source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant