Skip to content

Commit 49ad17a

Browse files
authored
Fix docs, add citation info, update repo infra (#1362)
1 parent 2934fb0 commit 49ad17a

File tree

21 files changed

+273
-535
lines changed

21 files changed

+273
-535
lines changed

.coveragerc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,10 @@ branch = True
33
source = src/
44
omit =
55
src/pynwb/_version.py
6+
src/pynwb/_due.py
67
src/pynwb/testing/*
8+
9+
[report]
10+
exclude_lines =
11+
pragma: no cover
12+
@abstract

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ assignees: ''
2020
<!--Please describe your environment according to the following bullet points.-->
2121

2222
Python Executable: Conda or Python
23-
Python Version: Python 3.5, 3.6, or 3.7
23+
Python Version: Python 3.6, 3.7, or 3.8
2424
Operating System: Windows, macOS or Linux
25-
HDMF Version:
25+
HDMF Version:
2626
PyNWB Version:
2727

2828
## Checklist
2929

30-
- [ ] Have you ensured the feature or change was not already [reported](https://github.com/NeurodataWithoutBorders/pynwb/issues)?
30+
- [ ] Have you ensured the bug was not already [reported](https://github.com/NeurodataWithoutBorders/pynwb/issues)?
3131
- [ ] Have you included a brief and descriptive title?
3232
- [ ] Have you included a clear description of the problem you are trying to solve?
3333
- [ ] Have you included a minimal code snippet that reproduces the issue you are encountering?

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ What was the reasoning behind this change? Please explain the changes briefly.
44

55
## How to test the behavior?
66
```
7-
Show here how to reproduce the new behavior (can be a bug fix or a new feature)
7+
Show how to reproduce the new behavior (can be a bug fix or a new feature)
88
```
99

1010
## Checklist
1111

12+
- [ ] Did you update CHANGELOG.md with your changes?
1213
- [ ] Have you checked our [Contributing](https://github.com/NeurodataWithoutBorders/pynwb/blob/dev/docs/CONTRIBUTING.rst) document?
13-
- [ ] Have you ensured the PR description clearly describes problem and the solution?
14+
- [ ] Have you ensured the PR clearly describes the problem and the solution?
1415
- [ ] Is your contribution compliant with our coding style? This can be checked running `flake8` from the source directory.
1516
- [ ] Have you checked to ensure that there aren't other open [Pull Requests](https://github.com/NeurodataWithoutBorders/pynwb/pulls) for the same change?
16-
- [ ] Have you included the relevant issue number using `#XXX` notation where `XXX` is the issue number?
17+
- [ ] Have you included the relevant issue number using "Fix #XXX" notation where XXX is the issue number? By including "Fix #XXX" you allow GitHub to close issue #XXX when the PR is merged.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Prepare for release of PyNWB [version]
2+
3+
### Before merging:
4+
- [ ] Minor releases: Update package versions in `requirements.txt`, `requirements-dev.txt`, `requirements-doc.txt`, `requirements-min.txt` as needed. See https://requires.io/github/NeurodataWithoutBorders/pynwb/requirements/?branch=dev
5+
- [ ] Check legal file dates and information in `Legal.txt`, `license.txt`, `README.rst`, `docs/source/conf.py`, and any other locations as needed
6+
- [ ] Update `setup.py` as needed
7+
- [ ] Update `README.rst` as needed
8+
- [ ] Update `src/pynwb/nwb-schema` submodule as needed. Check the version number manually.
9+
- [ ] Update changelog (set release date) in `CHANGELOG.md` and any other docs as needed
10+
- [ ] Run tests locally including gallery tests and validation tests, and inspect all warnings and outputs (`python test.py -v > out.txt`)
11+
- [ ] Test docs locally (`make apidoc`, `make html`)
12+
- [ ] Push changes to this PR and make sure all PRs to be included in this release have been merged
13+
- [ ] Check that the readthedocs build for this PR succeeds (build latest to pull the new branch, then activate and
14+
build docs for new branch): https://readthedocs.org/projects/pynwb/builds/
15+
16+
### After merging:
17+
1. Create release by following steps in `docs/source/make_a_release.rst` or use alias `git pypi-release [tag]` if set up
18+
2. After the CI bot creates the new release (wait ~10 min), update the release notes on the [GitHub releases page](https://github.com/NeurodataWithoutBorders/pynwb/releases) with the changelog
19+
3. Check that the readthedocs "latest" and "stable" builds run and succeed
20+
4. Update [conda-forge/pynwb-feedstock](https://github.com/conda-forge/pynwb-feedstock)

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ docs/tmpl.index.rst
5959
tests/coverage/htmlcov
6060
.coverage
6161

62+
# duecredit output
63+
.duecredit.p
64+
6265
# tox
6366
.tox
6467

CHANGELOG.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
- Update documentation, CI GitHub processes. @oruebel @yarikoptic, @bendichter, @TomDonoghue, @rly
1212
(#1311, #1336, #1351, #1352, #1345, #1340, #1327)
1313
- Set default `neurodata_type_inc` for `NWBGroupSpec`, `NWBDatasetSpec`. @rly (#1295)
14+
- Block usage of h5py 3+ for now. h5py>=2.9, <3 is supported. (#1355)
15+
- Fix incompatibility issue with downstream github-release tool used to deploy releases to GitHub. @rly (#1245)
16+
- Fix issue with Sphinx gallery. @rly
17+
- Add citation information to documentation and support for duecredit tool. @rly
18+
- Remove use of ColoredTestRunner for more readable verbose test output. @rly
1419
- Add support for nwb-schema 2.3.0. @rly (#1245, #1330)
1520
- Add optional `waveforms` column to the `Units` table.
1621
- Add optional `strain` field to `Subject`.
@@ -21,7 +26,25 @@
2126
- Clarify documentation for electrode impedance and filtering.
2227
- Set the `stimulus_description` for `IZeroCurrentClamp` to have the fixed value "N/A".
2328
- See https://nwb-schema.readthedocs.io/en/latest/format_release_notes.html for full schema release notes.
24-
- Add support for HDMF 2.5.3. @rly @ajtritt (#1325, #1355, #1360, #1245, #1287)
29+
- Add support for HDMF 2.5.5 and upgrade HDMF requirement from 2.1.0 to 2.5.5. @rly @ajtritt
30+
(#1325, #1355, #1360, #1245, #1287). This includes several relevant features and bug fixes, including:
31+
- Fix issue where dependencies of included types were not being loaded in namespaces / extensions.
32+
- Add `HDF5IO.get_namespaces(path=path, file=file)` method which returns a dict of namespace name mapped to the
33+
namespace version (the largest one if there are multiple) for each namespace cached in the given HDF5 file.
34+
- Add methods for automatic creation of `MultiContainerInterface` classes.
35+
- Add ability to specify a custom class for new columns to a `DynamicTable` that are not `VectorData`,
36+
`DynamicTableRegion`, or `VocabData` using `DynamicTable.__columns__` or `DynamicTable.add_column(...)`.
37+
- Add support for creating and specifying multi-index columns in a `DynamicTable` using `add_column(...)`.
38+
- Add capability to add a row to a column after IO.
39+
- Add method `AbstractContainer.get_fields_conf`.
40+
- Add functionality for storing external resource references.
41+
- Add method `hdmf.utils.get_docval_macro` to get a tuple of the current values for a docval_macro, e.g., 'array_data'
42+
and 'scalar_data'.
43+
- `DynamicTable` can be automatically generated using `get_class`. Now the HDMF API can read files with extensions
44+
that contain a DynamicTable without needing to import the extension first.
45+
- Add `EnumData` type for storing data that comes from a fixed set of values.
46+
- Add `AlignedDynamicTable` type which defines a DynamicTable that supports storing a collection of subtables.
47+
- Allow `np.bool_` as a valid `bool` dtype when validating.
2548
- See https://github.com/hdmf-dev/hdmf/releases for full HDMF release notes.
2649

2750
## PyNWB 1.4.0 (August 12, 2020)

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include license.txt Legal.txt versioneer.py src/pynwb/_version.py
1+
include license.txt Legal.txt versioneer.py src/pynwb/_version.py src/pynwb/_due.py
22
include requirements.txt requirements-dev.txt requirements-doc.txt requirements-min.txt
33
include test.py tox.ini
44

README.rst

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,20 @@ Build Status
3737
Overall Health
3838
==============
3939

40+
.. image:: https://github.com/NeurodataWithoutBorders/pynwb/workflows/Run%20coverage/badge.svg
41+
:target: https://github.com/NeurodataWithoutBorders/pynwb/actions?query=workflow%3A%22Run+coverage%22
42+
4043
.. image:: https://codecov.io/gh/NeurodataWithoutBorders/pynwb/branch/dev/graph/badge.svg
4144
:target: https://codecov.io/gh/NeurodataWithoutBorders/pynwb
4245

4346
.. image:: https://requires.io/github/NeurodataWithoutBorders/pynwb/requirements.svg?branch=dev
4447
:target: https://requires.io/github/NeurodataWithoutBorders/pynwb/requirements/?branch=dev
4548
:alt: Requirements Status
46-
49+
4750
.. image:: https://readthedocs.org/projects/pynwb/badge/?version=latest
4851
:target: https://pynwb.readthedocs.io/en/latest/?badge=latest
4952
:alt: Documentation Status
50-
53+
5154
.. image:: https://img.shields.io/pypi/l/pynwb.svg
5255
:target: https://github.com/neurodatawithoutborders/pynwb/blob/dev/license.txt
5356
:alt: PyPI - License
@@ -82,6 +85,11 @@ Contributing
8285

8386
For details on how to contribute to PyNWB see our `contribution guidelines <docs/CONTRIBUTING.rst>`_.
8487

88+
Citing NWB
89+
==========
90+
91+
Oliver Rübel, Andrew Tritt, Ryan Ly, Benjamin K. Dichter, Satrajit Ghosh, Lawrence Niu, Ivan Soltesz, Karel Svoboda, Loren Frank, Kristofer E. Bouchard, "The Neurodata Without Borders ecosystem for neurophysiological data science", bioRxiv 2021.03.13.435173, March 15, 2021, doi: https://doi.org/10.1101/2021.03.13.435173
92+
8593
LICENSE
8694
=======
8795

docs/gallery/domain/brain_observatory.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@
142142
)
143143

144144
########################################
145-
# The Allen Institute does not include the raw imaging signal, as this data would make the file too large. Instead, these
146-
# data are preprocessed, and a dF/F fluorescence signal extracted for each region-of-interest (ROI). To store the chain
147-
# of computations necessary to describe this data processing pipeline, pynwb provides a "processing module" with
145+
# The Allen Institute does not include the raw imaging signal, as this data would make the file too large. Instead,
146+
# these data are preprocessed, and a dF/F fluorescence signal extracted for each region-of-interest (ROI). To store the
147+
# chain of computations necessary to describe this data processing pipeline, pynwb provides a "processing module" with
148148
# interfaces that simplify and standardize the process of adding the steps in this provenance chain to the file:
149149
ophys_module = nwbfile.create_processing_module(
150150
name='ophys_module',

docs/source/conf.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,16 @@
6565
'gallery_dirs': ['tutorials'],
6666
'subsection_order': ExplicitOrder(['../gallery/general', '../gallery/domain']),
6767
'backreferences_dir': 'gen_modules/backreferences',
68-
'download_section_examples': False,
6968
'min_reported_time': 5
7069
}
7170

7271
intersphinx_mapping = {
7372
'python': ('https://docs.python.org/3.8', None),
74-
'numpy': ('https://docs.scipy.org/doc/numpy/', None),
73+
'numpy': ('https://numpy.org/doc/stable/objects.inv', None),
7574
'matplotlib': ('https://matplotlib.org', None),
76-
'h5py': ('http://docs.h5py.org/en/latest/', None),
75+
'h5py': ('https://docs.h5py.org/en/latest/', None),
7776
'hdmf': ('https://hdmf.readthedocs.io/en/latest/', None),
78-
'pandas': ('http://pandas.pydata.org/pandas-docs/stable/', None)
77+
'pandas': ('https://pandas.pydata.org/pandas-docs/stable/', None)
7978
}
8079

8180
# Add any paths that contain templates here, relative to this directory.
@@ -326,5 +325,5 @@ def skip(app, what, name, obj, skip, options):
326325

327326
def setup(app):
328327
app.connect('builder-inited', run_apidoc)
329-
app.add_stylesheet("theme_overrides.css") # overrides for wide tables in RTD theme
328+
app.add_css_file("theme_overrides.css") # overrides for wide tables in RTD theme
330329
app.connect("autodoc-skip-member", skip)

0 commit comments

Comments
 (0)