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

Add offset to TimeSeries #494

Merged

Conversation

CodyCBakerPhD
Copy link
Contributor

@CodyCBakerPhD CodyCBakerPhD commented Jan 20, 2022

Summary of changes

Sister PR to NeurodataWithoutBorders/pynwb#1424, this suggests adding an offset attribute to all TimeSeries objects for additional support in converting data storage into proper units.

To convert the TimeSeries data field to the specified units, one would perform the operation

data_in_units = data_in_storage * conversion + offset

PR checklist for schema changes

  • Update the version string in docs/format/source/conf.py, core/nwb.namespace.yaml, and /core/nwb.file.yaml
    to the next version with the suffix "-alpha"
  • Add a new section in the release notes for the new version with the date "Upcoming"
  • Add release notes for the PR to docs/format/source/format_release_notes.rst

@CodyCBakerPhD CodyCBakerPhD changed the title Update nwb.base.yaml Add offset to TImeSeries Feb 18, 2022
@CodyCBakerPhD CodyCBakerPhD changed the title Add offset to TImeSeries Add offset to TimeSeries Feb 18, 2022
@CodyCBakerPhD CodyCBakerPhD marked this pull request as ready for review February 18, 2022 21:42
core/nwb.icephys.yaml Outdated Show resolved Hide resolved
core/nwb.icephys.yaml Outdated Show resolved Hide resolved
core/nwb.icephys.yaml Outdated Show resolved Hide resolved
rly
rly previously approved these changes Feb 18, 2022
@rly rly merged commit 86dc39b into NeurodataWithoutBorders:dev Feb 18, 2022
@rly rly deleted the Add-offset-attribute-to-TimeSeries branch February 18, 2022 23:48
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