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

[Feature]: Allow specifying unit in ElectricalSeries #1774

Open
3 tasks done
susiefeng opened this issue Sep 9, 2023 · 1 comment
Open
3 tasks done

[Feature]: Allow specifying unit in ElectricalSeries #1774

susiefeng opened this issue Sep 9, 2023 · 1 comment
Labels
category: question questions about code or code behavior

Comments

@susiefeng
Copy link

susiefeng commented Sep 9, 2023

What would you like to see added to PyNWB?

I don't see an option to specify my recording unit in microvolts for ElectricalSeries from the current documentation. I think this could be a useful feature to add

Is your feature request related to a problem?

No response

What solution would you like?

add mV as a unit option

Do you have any interest in helping implement the feature?

No.

Code of Conduct

@susiefeng susiefeng changed the title [Feature]: specify electrophysiology recording unit in mV instead of V [Feature]: Allow specifying unit in ElectricalSeries Sep 9, 2023
@rly
Copy link
Contributor

rly commented Sep 9, 2023

Hi @susiefeng,

You can store your data in any units of voltage and then set the conversion field of your ElectricalSeries to be the value that you have to multiply your data with to get the data into volts. So if the values of data are stored in mV, then conversion should be 1e-3. For uV, it should be 1e-6.

We recommend that you store your voltage data in its most raw form -- the integer values returned from the analog-to-digital converter. This can save storage space, because probably your data will be in int16 instead of float64. The converter or acquisition system should provide by a conversion factor that you need to multiply your raw data by to get your data into units of V or mV (e.g., 1.95e-7 to convert Intan data into volts). That's the value you would put into the conversion field. Let me know if you have any questions.

@stephprince stephprince added the category: question questions about code or code behavior label Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: question questions about code or code behavior
Projects
None yet
Development

No branches or pull requests

3 participants