Closed philipstarkey closed 6 years ago
Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).
Not sure why we store them as strings, but we do. The problem is that they were previously bytestrings but are now unicode strings, and spinapi only became more accepting of string types for the bitfields in 3.2.0. Testing must have been done with an updated spinapi, and we forgot to add a version check. I'll add a version check to PulseBlaster.py.
Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).
Should be fixed by pull request #45
Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).
Merged in cbillington/labscript_devices/Python3_PulseBlasters (pull request #45)
Resolve issue #26
Approved-by: Shaun Johnstone shaun.johnstone@gmail.com
→ \<\<cset fba06690520e87d84fb6f3f84b7da2d35ac5b1fb>>
Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).
Merged in cbillington/labscript_devices/Python3_PulseBlasters (pull request #45)
Resolve issue #26
Approved-by: Shaun Johnstone shaun.johnstone@gmail.com
→ \<\<cset fba06690520e87d84fb6f3f84b7da2d35ac5b1fb>>
Original report (archived issue) by Shaun Johnstone (Bitbucket: shjohnst, GitHub: shjohnst).
Having just updated to the latest version of everything (after a long time on an older version), I get the following error whenever pulseblasters are programmed:
It seems as though "flags" is stored as unicode rather than an integer. Adding in a line to convert it to an int resolves this issue. Is there a reason why the flags are stored this way? Or am I just on an old version of SpinAPI (3.1.1)? I assume that someone has tested the pulseblaster since the Python 3 conversion?