-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix docs, add citation info, update repo infra (#1362)
- Loading branch information
Showing
21 changed files
with
273 additions
and
535 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Prepare for release of PyNWB [version] | ||
|
||
### Before merging: | ||
- [ ] 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 | ||
- [ ] Check legal file dates and information in `Legal.txt`, `license.txt`, `README.rst`, `docs/source/conf.py`, and any other locations as needed | ||
- [ ] Update `setup.py` as needed | ||
- [ ] Update `README.rst` as needed | ||
- [ ] Update `src/pynwb/nwb-schema` submodule as needed. Check the version number manually. | ||
- [ ] Update changelog (set release date) in `CHANGELOG.md` and any other docs as needed | ||
- [ ] Run tests locally including gallery tests and validation tests, and inspect all warnings and outputs (`python test.py -v > out.txt`) | ||
- [ ] Test docs locally (`make apidoc`, `make html`) | ||
- [ ] Push changes to this PR and make sure all PRs to be included in this release have been merged | ||
- [ ] Check that the readthedocs build for this PR succeeds (build latest to pull the new branch, then activate and | ||
build docs for new branch): https://readthedocs.org/projects/pynwb/builds/ | ||
|
||
### After merging: | ||
1. Create release by following steps in `docs/source/make_a_release.rst` or use alias `git pypi-release [tag]` if set up | ||
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 | ||
3. Check that the readthedocs "latest" and "stable" builds run and succeed | ||
4. Update [conda-forge/pynwb-feedstock](https://github.com/conda-forge/pynwb-feedstock) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,6 +59,9 @@ docs/tmpl.index.rst | |
tests/coverage/htmlcov | ||
.coverage | ||
|
||
# duecredit output | ||
.duecredit.p | ||
|
||
# tox | ||
.tox | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
.. _citing: | ||
|
||
Citing PyNWB | ||
============ | ||
|
||
BibTeX entry | ||
------------ | ||
|
||
If you use PyNWB in your research, please use the following citation: | ||
|
||
.. code-block:: bibtex | ||
@article {R{\"u}bel2021.03.13.435173, | ||
author = {R{\"u}bel, Oliver and Tritt, Andrew and Ly, Ryan and Dichter, Benjamin K. and Ghosh, Satrajit and Niu, Lawrence and Soltesz, Ivan and Svoboda, Karel and Frank, Loren and Bouchard, Kristofer E.}, | ||
title = {The Neurodata Without Borders ecosystem for neurophysiological data science}, | ||
elocation-id = {2021.03.13.435173}, | ||
year = {2021}, | ||
doi = {10.1101/2021.03.13.435173}, | ||
publisher = {Cold Spring Harbor Laboratory}, | ||
abstract = {The neurophysiology of cells and tissues are monitored electrophysiologically and optically in diverse experiments and species, ranging from flies to humans. Understanding the brain requires integration of data across this diversity, and thus these data must be findable, accessible, interoperable, and reusable (FAIR). This requires a standard language for data and metadata that can coevolve with neuroscience. We describe design and implementation principles for a language for neurophysiology data. Our software (Neurodata Without Borders, NWB) defines and modularizes the interdependent, yet separable, components of a data language. We demonstrate NWB{\textquoteright}s impact through unified description of neurophysiology data across diverse modalities and species. NWB exists in an ecosystem which includes data management, analysis, visualization, and archive tools. Thus, the NWB data language enables reproduction, interchange, and reuse of diverse neurophysiology data. More broadly, the design principles of NWB are generally applicable to enhance discovery across biology through data FAIRness.Competing Interest StatementThe authors have declared no competing interest.}, | ||
URL = {https://www.biorxiv.org/content/early/2021/03/15/2021.03.13.435173}, | ||
eprint = {https://www.biorxiv.org/content/early/2021/03/15/2021.03.13.435173.full.pdf}, | ||
journal = {bioRxiv} | ||
} | ||
Using duecredit | ||
----------------- | ||
|
||
Citations can be generated using duecredit_. To install duecredit, run ``pip install duecredit``. | ||
|
||
You can obtain a list of citations for your Python script, e.g., ``yourscript.py``, using: | ||
|
||
.. code-block:: bash | ||
cd /path/to/your/module | ||
python -m duecredit yourscript.py | ||
Alternatively, you can set the environment variable ``DUECREDIT_ENABLE=yes`` | ||
|
||
.. code-block:: bash | ||
DUECREDIT-ENABLE=yes python yourscript.py | ||
Citations will be saved in a hidden file (``.duecredit.p``) in the current directory. You can then use the duecredit_ | ||
command line tool to export the citations to different formats. For example, you can display your citations in | ||
BibTeX format using: | ||
|
||
.. code-block:: bash | ||
duecredit summary --format=bibtex | ||
For more information on using duecredit, please consult its `homepage <https://github.com/duecredit/duecredit>`_. | ||
|
||
.. _duecredit: https://github.com/duecredit/duecredit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
codecov==2.1.8 | ||
coverage==5.2 | ||
flake8==3.8.3 | ||
flake8-debugger==3.1.0 | ||
flake8-print==3.1.4 | ||
importlib-metadata<2 | ||
tox==3.17.1 | ||
# pinned dependencies to reproduce an entire development environment to use PyNWB, run PyNWB tests, check code style, | ||
# compute coverage, and create test environments | ||
codecov==2.1.11 | ||
coverage==5.5 | ||
flake8==3.9.1 | ||
flake8-debugger==4.0.0 | ||
flake8-print==4.0.0 | ||
importlib-metadata==4.0.1 | ||
tox==3.23.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# dependencies to generate the documentation for PyNWB | ||
sphinx | ||
matplotlib | ||
sphinx_rtd_theme | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# pinned dependencies to reproduce an entire development environment to use PyNWB | ||
h5py==2.10.0 | ||
hdmf==2.5.5 | ||
numpy==1.18.5 | ||
pandas==0.25.3 | ||
numpy==1.19.3 | ||
pandas==1.1.5 | ||
python-dateutil==2.8.1 | ||
setuptools==56.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.