Skip to content

Commit 6d1fd30

Browse files
committed
DOC: Update nibabel.info docstring, add line breaks for nicer pydoc experience
1 parent 358e575 commit 6d1fd30

File tree

2 files changed

+23
-19
lines changed

2 files changed

+23
-19
lines changed

README.rst

+10-8
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,15 @@
7272
.. Following contents should be copied from LONG_DESCRIPTION in nibabel/info.py
7373
7474
75-
Read and write access to common neuroimaging file formats, including: ANALYZE_ (plain, SPM99, SPM2 and later),
76-
GIFTI_, NIfTI1_, NIfTI2_, `CIFTI-2`_, MINC1_, MINC2_, `AFNI BRIK/HEAD`_, ECAT_ and Philips PAR/REC.
77-
In addition, NiBabel also supports FreeSurfer_'s MGH_, geometry, annotation and morphometry files,
78-
and provides some limited support for DICOM_.
75+
Read and write access to common neuroimaging file formats, including:
76+
ANALYZE_ (plain, SPM99, SPM2 and later), GIFTI_, NIfTI1_, NIfTI2_, `CIFTI-2`_,
77+
MINC1_, MINC2_, `AFNI BRIK/HEAD`_, ECAT_ and Philips PAR/REC.
78+
In addition, NiBabel also supports FreeSurfer_'s MGH_, geometry, annotation and
79+
morphometry files, and provides some limited support for DICOM_.
7980

80-
NiBabel's API gives full or selective access to header information (metadata), and image
81-
data is made available via NumPy arrays. For more information, see NiBabel's `documentation site`_
82-
and `API reference`_.
81+
NiBabel's API gives full or selective access to header information (metadata),
82+
and image data is made available via NumPy arrays. For more information, see
83+
NiBabel's `documentation site`_ and `API reference`_.
8384

8485
.. _API reference: https://nipy.org/nibabel/api.html
8586
.. _AFNI BRIK/HEAD: https://afni.nimh.nih.gov/pub/dist/src/README.attributes
@@ -114,7 +115,8 @@ When working on NiBabel itself, it may be useful to install in "editable" mode::
114115
git clone https://github.com/nipy/nibabel.git
115116
pip install -e ./nibabel
116117

117-
For more information on previous releases, see the `release archive`_ or `development changelog`_.
118+
For more information on previous releases, see the `release archive`_ or
119+
`development changelog`_.
118120

119121
.. _current release: https://pypi.python.org/pypi/NiBabel
120122
.. _release archive: https://github.com/nipy/NiBabel/releases

nibabel/info.py

+13-11
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
"""Define distribution parameters for nibabel, including package version
1+
"""Define static nibabel metadata for nibabel
22
3-
The long description parameter is used to fill settings in setup.py, the
4-
nibabel top-level docstring, and in building the docs.
3+
The long description parameter is used in the nibabel top-level docstring,
4+
and in building the docs.
55
We exec this file in several places, so it cannot import nibabel or use
66
relative imports.
77
"""
@@ -12,14 +12,15 @@
1212
# We also include this text in the docs by ``..include::`` in
1313
# ``docs/source/index.rst``.
1414
long_description = """
15-
Read and write access to common neuroimaging file formats, including: ANALYZE_ (plain, SPM99, SPM2 and later),
16-
GIFTI_, NIfTI1_, NIfTI2_, `CIFTI-2`_, MINC1_, MINC2_, `AFNI BRIK/HEAD`_, ECAT_ and Philips PAR/REC.
17-
In addition, NiBabel also supports FreeSurfer_'s MGH_, geometry, annotation and morphometry files,
18-
and provides some limited support for DICOM_.
15+
Read and write access to common neuroimaging file formats, including:
16+
ANALYZE_ (plain, SPM99, SPM2 and later), GIFTI_, NIfTI1_, NIfTI2_, `CIFTI-2`_,
17+
MINC1_, MINC2_, `AFNI BRIK/HEAD`_, ECAT_ and Philips PAR/REC.
18+
In addition, NiBabel also supports FreeSurfer_'s MGH_, geometry, annotation and
19+
morphometry files, and provides some limited support for DICOM_.
1920
20-
NiBabel's API gives full or selective access to header information (metadata), and image
21-
data is made available via NumPy arrays. For more information, see NiBabel's `documentation site`_
22-
and `API reference`_.
21+
NiBabel's API gives full or selective access to header information (metadata),
22+
and image data is made available via NumPy arrays. For more information, see
23+
NiBabel's `documentation site`_ and `API reference`_.
2324
2425
.. _API reference: https://nipy.org/nibabel/api.html
2526
.. _AFNI BRIK/HEAD: https://afni.nimh.nih.gov/pub/dist/src/README.attributes
@@ -54,7 +55,8 @@
5455
git clone https://github.com/nipy/nibabel.git
5556
pip install -e ./nibabel
5657
57-
For more information on previous releases, see the `release archive`_ or `development changelog`_.
58+
For more information on previous releases, see the `release archive`_ or
59+
`development changelog`_.
5860
5961
.. _current release: https://pypi.python.org/pypi/NiBabel
6062
.. _release archive: https://github.com/nipy/NiBabel/releases

0 commit comments

Comments
 (0)