Skip to content

Commit 2bf5d19

Browse files
authored
Prepare PyNWB 2.1.0 (#1492)
* Update changelog * Update requirements * Update submodule to 2.5.0 * Revert validation tests to python 3.8 because of allensdk incompat * See last commit * Update changelog * Update dandi req * Fix intersphinx * Fix missing crossref * Update release template * Increase timeout to reduce validation timeout errors * Improve comments * Temporarily run all CircleCI tests * Don't run ros3 examples in validation tests * Revert "Temporarily run all CircleCI tests" This reverts commit 5f6a9a5.
1 parent 4460a1b commit 2bf5d19

File tree

15 files changed

+60
-51
lines changed

15 files changed

+60
-51
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ jobs:
314314
python test.py --example-ros3
315315
316316
test-validation:
317-
<<: *py39
317+
<<: *py38
318318
steps:
319319
- checkout
320320
- run: git submodule sync
@@ -326,7 +326,7 @@ jobs:
326326
command: |
327327
. ../venv/bin/activate
328328
pip install tox
329-
tox -e validation-py39
329+
tox -e validation-py38
330330
# Install is expected to be quick. Increase timeout in case there are some network issues.
331331
# While pip installing tox does not output by default. Circle thinks task is dead after 10 min.
332332
no_output_timeout: 30m

.github/PULL_REQUEST_TEMPLATE/release.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ Prepare for release of PyNWB [version]
1010
- [ ] Update `README.rst` as needed
1111
- [ ] Update `src/pynwb/nwb-schema` submodule as needed. Check the version number and commit SHA manually
1212
- [ ] Update changelog (set release date) in `CHANGELOG.md` and any other docs as needed
13-
- [ ] Run tests locally including gallery tests and validation tests, and inspect all warnings and outputs
14-
(`python test.py -v > out.txt`)
15-
- [ ] Test docs locally (`make apidoc`, `make html`)
13+
- [ ] Run tests locally including gallery, validation, and streaming tests, and inspect all warnings and outputs
14+
(`python test.py -v -p -i -b -w -r > out.txt 2>&1`)
15+
- [ ] Test docs locally (`make clean`, `make html`)
1616
- [ ] Push changes to this PR and make sure all PRs to be included in this release have been merged
1717
- [ ] Check that the readthedocs build for this PR succeeds (build latest to pull the new branch, then activate and
1818
build docs for new branch): https://readthedocs.org/projects/pynwb/builds/

CHANGELOG.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# PyNWB Changelog
22

3-
## PyNWB 2.1.0 (Upcoming)
3+
## PyNWB 2.1.0 (July 6, 2022)
44

55
### Breaking changes:
6-
- A warning is now raised if `SpatialSeries.data` has more than 3 columns. @bendichter, @rly (#1455, #1480)
76
- Updated ``TimeIntervals`` to use the new ``TimeSeriesReferenceVectorData`` type. This does not alter the overall
87
structure of ``TimeIntervals`` in a major way aside from changing the value of the ``neurodata_type`` attribute of the
98
``TimeIntervals.timeseries`` column from ``VectorData`` to ``TimeSeriesReferenceVectorData``. This change facilitates
@@ -16,7 +15,9 @@
1615
behavior of the API is largely consistent with existing behavior. @oruebel, @rly (#1390)
1716

1817
# Enhancements and minor changes
18+
- A warning is now raised if `SpatialSeries.data` has more than 3 columns. @bendichter, @rly (#1455, #1480)
1919
- The arguments x, y, z, imp, location, filtering are no longer required in the electrodes table.
20+
@h-mayorquin, @rly (#1448)
2021
- Added `cell_id` attribute to `IntracellularElectrode`. @bendichter (#1459)
2122
- Added `offset` field to `TimeSeries` and its subtypes. @codycbakerphd (#1424)
2223
- Added support for NWB 2.5.0.
@@ -33,11 +34,11 @@
3334

3435
### Documentation and tutorial enhancements:
3536
- Added tutorial on annotating data via ``TimeIntervals``. @oruebel (#1390)
36-
- Added copy button to code blocks @weiglszonja (#1460)
37-
- Created behavioral tutorial @weiglszonja (#1464)
37+
- Added copy button to code blocks. @weiglszonja (#1460)
38+
- Created behavioral tutorial. @weiglszonja (#1464)
3839
- Enhanced display of icephys pandas tutorial by using ``dataframe_image`` to render and display large tables
3940
as images. @oruebel (#1469)
40-
- Created tutorial about reading and exploring an existing `NWBFile` @weiglszonja (#1453)
41+
- Created tutorial about reading and exploring an existing `NWBFile`. @weiglszonja (#1453)
4142
- Added new logo for PyNWB. @oruebel (#1461)
4243
- Minor text fixes. @oruebel @bendichter (#1443, #1462, #1463, #1466, #1472, #1473)
4344

docs/gallery/general/plot_timeintervals.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@
6969
# tables for :py:meth:`~pynwb.file.NWBFile.epochs`, :py:meth:`~pynwb.file.NWBFile.trials`, and
7070
# :py:meth:`~pynwb.file.NWBFile.invalid_times`.
7171
#
72+
# .. _basic_trials:
73+
#
7274
# Trials
7375
# ^^^^^^
7476
#

docs/gallery/general/read_basics.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@
183183
#
184184
# (200, 400, 300, 3)
185185
#
186-
# This :py:class:`~pynwb.image.OpticalSeries` data contains 200 images of size 400x300 pixels with three channels (red, green, and blue).
186+
# This :py:class:`~pynwb.image.OpticalSeries` data contains 200 images of size 400x300 pixels with three channels
187+
# (red, green, and blue).
187188
#
188189
# Slicing datasets
189190
# ----------------

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@
7474
}
7575

7676
intersphinx_mapping = {
77-
'python': ('https://docs.python.org/3.8', None),
77+
'python': ('https://docs.python.org/3.9', None),
7878
'numpy': ('https://numpy.org/doc/stable/', None),
79-
'matplotlib': ('https://matplotlib.org', None),
79+
'matplotlib': ('https://matplotlib.org/stable/', None),
8080
'h5py': ('https://docs.h5py.org/en/latest/', None),
8181
'hdmf': ('https://hdmf.readthedocs.io/en/latest/', None),
8282
'pandas': ('https://pandas.pydata.org/pandas-docs/stable/', None),

environment-ros3.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ channels:
66
dependencies:
77
- python=3.9
88
- h5py==3.6.0
9-
- hdmf==3.3.1
9+
- hdmf==3.3.2
1010
- matplotlib==3.5.1
11-
- numpy==1.21.0
12-
- pandas==1.3.0
13-
- python-dateutil==2.8.1
11+
- numpy==1.21.5
12+
- pandas==1.3.5
13+
- python-dateutil==2.8.2
1414
- setuptools
15-
- dandi==0.39.4
15+
- dandi==0.43.0

requirements-dev.txt

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# pinned dependencies to reproduce an entire development environment to use PyNWB, run PyNWB tests, check code style,
22
# compute coverage, and create test environments
3-
codecov==2.1.11
4-
coverage==5.5
5-
flake8==3.9.2
6-
flake8-debugger==4.0.0
7-
flake8-print==4.0.0
8-
importlib-metadata==4.6.1
9-
tox==3.23.1
3+
codecov==2.1.12
4+
coverage==6.3.2
5+
flake8==4.0.1
6+
flake8-debugger==4.1.2
7+
flake8-print==5.0.0
8+
importlib-metadata==4.2.0
9+
pytest==7.1.2
10+
pytest-cov==3.0.0
11+
tox==3.25.0

requirements-doc.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# dependencies to generate the documentation for PyNWB
2-
sphinx
1+
# dependencies to generate the documentation for PyNWB and test run the sphinx gallery examples that do not require
2+
# ROS3 support in h5py. For those examples, use the conda env specified in environment-ros3.yml
3+
sphinx>=4 # improved support for docutils>=0.17
4+
sphinx_rtd_theme>=1 # <1 does not work with docutils>=0.17
35
matplotlib
4-
sphinx_rtd_theme
56
sphinx-gallery
67
allensdk>=2.11.0 # python 3.8 is not supported in allensdk<2.11
78
MarkupSafe==2.0.1 # resolve incompatibility between jinja2 and markupsafe: https://github.com/AllenInstitute/AllenSDK/issues/2308

requirements-min.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# minimum versions of package dependencies for installing PyNWB
22
h5py==2.10 # support for selection of datasets with list of indices added in 2.10
3-
hdmf==3.3.1
3+
hdmf==3.3.2
44
numpy==1.16
55
pandas==1.0.5
66
python-dateutil==2.7

0 commit comments

Comments
 (0)