Skip to content

adjust binary to uV conversion factor calc based on bytes per sample - #3

Merged
JuliaSprenger merged 1 commit into
JuliaSprenger:enh/axona_spikesfrom
catalystneuro:fix/axona_binary_to_uV_conversion
Jun 11, 2021
Merged

JuliaSprenger merged 1 commit into
JuliaSprenger:enh/axona_spikesfrom
catalystneuro:fix/axona_binary_to_uV_conversion

Conversation

@sbuergers

Copy link
Copy Markdown

Hi Julia,

Alessio discovered that the conversion from binary to uV was not performed correctly. I had hard-coded a scaing factor to 128, which really is dependent on the number of bytes per sample. I have adjusted this here, and added bytes_per_sample as an optional input parameter to _get_channel_gain(). By default this will now work for 2-bytes_per_sample data.

I keep creating new PRs for your branch, because it should be easiert to merge later.

Test passed locally.

Best,
Steffen.

@JuliaSprenger JuliaSprenger changed the title adjust binary to uV conserion factor calc based on bytes per sample adjust binary to uV conversion factor calc based on bytes per sample Jun 6, 2021
Comment thread neo/rawio/axonarawio.py Resolved
@JuliaSprenger
JuliaSprenger merged commit af4f2ae into JuliaSprenger:enh/axona_spikes Jun 11, 2021
JuliaSprenger pushed a commit that referenced this pull request Jun 26, 2025
Use pathlib for Intan PR and simplify data type for non header-attached formats
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.

2 participants