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

Gain calculation for Neuropixel 2.0 might be wrong #1363

Merged
merged 2 commits into from
Jan 29, 2024

Conversation

guptadivyansh
Copy link
Contributor

For commercial 2.0 probes, the manual says the ADC is 12 bits, which would make the highest positive value to be 2048, not 8192, as is hardcoded in the code. In the metadata of my recordings, imMaxInt=2048.

Jennifer Colonnel's code here uses the imMaxInt to calculate the gain factor.

@guptadivyansh
Copy link
Contributor Author

Note that the gain changed from 80 to 100 in the commercial probes, as confirmed here. It's better to read this from the metafile as well, field imChan0apGain. Added to the PR.

@guptadivyansh
Copy link
Contributor Author

@alejoe91 Please have a look, thanks! :)

@alejoe91 alejoe91 merged commit a0a3bef into NeuralEnsemble:master Jan 29, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants