on1arf / jds6600_python

python library to remote-control a Junce-Instruments JDS6600 signal generator over USB
MIT License
29 stars 11 forks source link

Very helpful APi! + Python2 Hack #2

Open 01tot10 opened 5 years ago

01tot10 commented 5 years ago

Hey hey!

Just wanted to thank you for writing this API, it helped me a lot yesterday when trying to figure out the serial protocol for my JDS6600 signal generator!

Also, just in case it might help someone else: I was able to use the API natively within Python2 by importing the str() function from future. ( I should for sure move to Python3 but I guess there's still some others like me stuck in the past )

Here are the bits of code I added to the imports:

from __future__ import unicode_literals from builtins import str