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

Numpy deprecation warnings #11

Open
maubuz opened this issue Apr 26, 2023 · 0 comments
Open

Numpy deprecation warnings #11

maubuz opened this issue Apr 26, 2023 · 0 comments

Comments

@maubuz
Copy link

maubuz commented Apr 26, 2023

When running sample script recording_examples/record_one_channel.py I'm getting the following deprecation warnings:

* recording
DeprecationWarning: The binary mode of fromstring is deprecated, as it behaves surprisingly on unicode inputs. Use frombuffer instead 
a = np.fromstring(data,dtype=np.int16)[0::2]

DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
frames.append(a.tostring())
* done recording

The code still runs as intended but I think it would be nice to update it.

I've made the suggested changes and the code seems to run normally. I'll submit a tiny PR with the changes.

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