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 support for NWB schema 2.6.0 and prepare PyNWB 2.3.0 #1611

Merged
merged 26 commits into from
Feb 22, 2023
Merged

Conversation

rly
Copy link
Contributor

@rly rly commented Dec 15, 2022

NWB schema 2.6.0 will be released around January 5, 2023.

Currently, it contains the following changes:

  • Added OnePhotonSeries.
  • Subject.age has a new optional attribute, reference, which can take a value of "birth" (default) or "gestational".
  • Add "in seconds" to the doc of Units.spike_times.

Required PyNWB changes:

When merging this branch into dev, do NOT squash and merge, so that individual PR contributions are kept.

This branch should be merged after the NWB schema 2.6.0 release. A PyNWB release (2.2.0) should be made shortly after.

* add age__reference and adjust tests

* add to CHANGELOG.md

* add period

* Update file.py

* Update CHANGELOG.md

* Update src/pynwb/file.py

* add arg check for Subject. If age__reference is provided, age must also be provided

* add regression test for subject age

* remove raising ValueError when age is omitted

* flake8

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update src/pynwb/file.py

* update to allow Subject.age__reference to be None

* test for Subject.age__reference == None

* Update CHANGELOG.md

* Update CHANGELOG.md

* use mapper to allow None

* update schema

* forbid passing age__reference=None to Subject.__init__

* Update comment

* fix flake8

* Run backwards compat tests in coverage

* Add tests for get_nwb_version

* Fix flake8

* Run IO utils tests in test suite

Co-authored-by: Ryan Ly <[email protected]>
@codecov
Copy link

codecov bot commented Dec 15, 2022

Codecov Report

Merging #1611 (5734d0f) into dev (b7cdead) will increase coverage by 0.54%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##              dev    #1611      +/-   ##
==========================================
+ Coverage   91.43%   91.97%   +0.54%     
==========================================
  Files          25       26       +1     
  Lines        2535     2581      +46     
  Branches      481      494      +13     
==========================================
+ Hits         2318     2374      +56     
+ Misses        137      132       -5     
+ Partials       80       75       -5     
Flag Coverage Δ
integration 71.48% <91.83%> (+0.99%) ⬆️
unit 83.80% <48.97%> (-0.70%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/pynwb/file.py 88.86% <100.00%> (+0.08%) ⬆️
src/pynwb/io/file.py 97.07% <100.00%> (+2.73%) ⬆️
src/pynwb/io/utils.py 100.00% <100.00%> (ø)
src/pynwb/ophys.py 96.05% <100.00%> (+0.40%) ⬆️
src/pynwb/io/base.py 91.35% <0.00%> (+7.40%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

src/pynwb/io/utils.py Outdated Show resolved Hide resolved
@rly rly added this to the PyNWB 2.3 milestone Dec 21, 2022
CodyCBakerPhD and others added 9 commits December 20, 2022 21:49
* Check nwb_version on read (#1612)

* Added NWBHDF5IO.nwb_version property and check for version on NWBHDF5IO.read
* Updated icephys tests to skip version check when writing non NWBFile container
* Add tests for NWB version check on read
* Add unit tests for NWBHDF5IO.nwb_version property
* Updated changelog

Co-authored-by: Ryan Ly <[email protected]>

* Bump setuptools from 65.4.1 to 65.5.1 (#1614)

Bumps [setuptools](https://github.com/pypa/setuptools) from 65.4.1 to 65.5.1.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/main/CHANGES.rst)
- [Commits](pypa/setuptools@v65.4.1...v65.5.1)

---
updated-dependencies:
- dependency-name: setuptools
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* modify export.rst to have proper links to the NWBFile API docs (#1615)

* Create project_action.yml (#1617)

* Create project_action.yml

* Update project_action.yml

* Update project_action.yml

* Update project_action.yml (#1620)

* Update project_action.yml (#1623)

* Project action (#1626)

* Create project_action.yml

* Update project_action.yml

* Update project_action.yml

* Update project_action.yml

* Show recommended usaege for hdf5plugin in tutorial (#1630)

* Show recommended usaege for hdf5plugin in tutorial

* Update docs/gallery/advanced_io/h5dataio.py

* Update docs/gallery/advanced_io/h5dataio.py

Co-authored-by: Heberto Mayorquin <[email protected]>

Co-authored-by: Ben Dichter <[email protected]>
Co-authored-by: Heberto Mayorquin <[email protected]>

* Update iterative write and parallel I/O tutorial (#1633)

* Update iterative write tutorial
* Update doc makefiles to clean up files created by the advanced io tutorial
* Fix #1514  Update parallel I/O tutorial to use H5DataIO instead of DataChunkIterator to setup data for parallel write
* Update changelog
* Fix flake8
* Fix broken external links
* Update make.bat
* Update CHANGELOG.md
* Update plot_iterative_write.py
* Update docs/gallery/advanced_io/plot_iterative_write.py

Co-authored-by: Ryan Ly <[email protected]>

* Update project_action.yml (#1632)

* nwb_schema_2.6.0

* Update CHANGELOG.md

* remove

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Oliver Ruebel <[email protected]>
Co-authored-by: Ryan Ly <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ben Dichter <[email protected]>
Co-authored-by: Heberto Mayorquin <[email protected]>
@mavaylon1 mavaylon1 self-assigned this Jan 17, 2023
@mavaylon1 mavaylon1 marked this pull request as ready for review January 17, 2023 21:45
@rly rly changed the title Add support for NWB schema 2.6.0 Add support for NWB schema 2.6.0 and prepare PyNWB 2.3.0 Jan 18, 2023
@mavaylon1
Copy link
Collaborator

@rly I fixed the sphinx issue but the conda 3.7 from #1427 is now appearing again.

@mavaylon1
Copy link
Collaborator

Fix #1642

@mavaylon1 mavaylon1 removed their assignment Feb 22, 2023
@mavaylon1 mavaylon1 self-requested a review February 22, 2023 23:55
@rly rly merged commit 220c180 into dev Feb 22, 2023
@rly rly deleted the schema_2.6.0 branch February 22, 2023 23:58
@rly rly mentioned this pull request Feb 23, 2023
10 tasks
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.

5 participants