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

Bug fix for multiple channels #1

Open
maresb opened this issue Feb 17, 2017 · 0 comments
Open

Bug fix for multiple channels #1

maresb opened this issue Feb 17, 2017 · 0 comments

Comments

@maresb
Copy link

maresb commented Feb 17, 2017

Line 115 of client.py should read:

self.clients[clId] = tuple([[] for _ in range(nSampl)]) # tuple of empty lists

Using [[]]*nSampl creates several references to just a single list. As a result, data from all channels is appended to each channel. This works for a single-channel device, but makes garbage for any device with more than one channel.

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