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

Some issues with the python api in plotter.py and vds1022.py #105

Open
SimonBauer-git opened this issue Dec 10, 2024 · 0 comments
Open

Some issues with the python api in plotter.py and vds1022.py #105

SimonBauer-git opened this issue Dec 10, 2024 · 0 comments

Comments

@SimonBauer-git
Copy link

I have recently tried out your python api, it works well for the most part, however i have found some issues. One of them is that plotting with the current versions of all needed packages in python (for example the current version of bokeh) straight up doesnt work. I have found a fix for it though, you need to replace the word Figure (in bokeh.plotting.Figure) with a lowercase f so figure. the current version of bokeh has changed the syntax of this command. FunkTickFormatter needs to be replaced with CustomJSTickFormatter aswell. The file vds1022.py also has some issues, when i tried the ttl example it caused this error:

--> 649 points = self._points + 128
650 counts = np.bincount(points, minlength=256)
651 m = np.dot(counts, range(256)) // len(points)

OverflowError: Python integer 128 out of bounds for int8

I havent found a fix for this yet, it has something to do with numpy version 2.x and the older one being tolerant to this, if I remove numpy and manually try to install version 1.x it breaks everything. I have also tried not adding 128 to it, that fixes it but only if you hook up a squarewave (i.e. the built in calibration signal), and i am pretty sure the result that produces is wrong aswell.

I also found an issue when trying the 4. Example (the stream the rms voltage to plot one). that spews out this error:

grafik

sorry for the long text

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

No branches or pull requests

1 participant