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

fix json encoder bug for GPIBInstrument objects #220

Merged
merged 4 commits into from
Aug 28, 2024

Conversation

mplilly4395
Copy link
Collaborator

Update to the JSON encoder to deal with GPIBInstrument objects. There is no testing for this error yet.

Copy link
Collaborator

@rsbrost rsbrost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change looks constructive and has my approval as long as it is fixing the bug on your side. That said, I am not sure this is an all-inclusive list, but it looks like a good addition/fix at a minimum for now.

@rsbrost
Copy link
Collaborator

rsbrost commented Aug 26, 2024

That said, the imports are failing test cases since for whatever reason the new pyvisa package pieces (such as Firewire, etc.) are not successfully imported by the github runner. I think we will need to add these explicitly to the pyscan setup.py for them to be recognized... might want to check with Andy on this.

@mplilly4395
Copy link
Collaborator Author

mplilly4395 commented Aug 26, 2024 via email

@rsbrost
Copy link
Collaborator

rsbrost commented Aug 28, 2024

Tested on lab experiment including srs830 as a device. I replicated the JSON encoder error, then pulled this branches changes and validated that they fix the issue. Merging now.

@rsbrost rsbrost merged commit 2e875b8 into main Aug 28, 2024
2 checks passed
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.

2 participants