Skip to content

Commit 82a261c

Browse files
committed
TST: fix some uninteresting flake8 errors
Fix / ignore line-length errors in nifti1.py and parrec.py.
1 parent a410f03 commit 82a261c

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

nibabel/nifti1.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -848,9 +848,12 @@ def set_data_shape(self, shape):
848848
849849
.. _issue 100: https://github.com/nipy/nibabel/issues/100
850850
.. _issue 309: https://github.com/nipy/nibabel/issues/309
851-
.. _save77: https://github.com/fieldtrip/fieldtrip/blob/428798b/external/freesurfer/save_nifti.m#L77-L82
852-
.. _save50: https://github.com/fieldtrip/fieldtrip/blob/428798b/external/freesurfer/save_nifti.m#L50-L56
853-
.. _load_nifti.m: https://github.com/fieldtrip/fieldtrip/blob/428798b/external/freesurfer/load_nifti.m#L86-L89
851+
.. _save77:
852+
https://github.com/fieldtrip/fieldtrip/blob/428798b/external/freesurfer/save_nifti.m#L77-L82
853+
.. _save50:
854+
https://github.com/fieldtrip/fieldtrip/blob/428798b/external/freesurfer/save_nifti.m#L50-L56
855+
.. _load_nifti.m:
856+
https://github.com/fieldtrip/fieldtrip/blob/428798b/external/freesurfer/load_nifti.m#L86-L89
854857
.. _standard header: http://nifti.nimh.nih.gov/pub/dist/src/niftilib/nifti1.h
855858
'''
856859
hdr = self._structarr

nibabel/parrec.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
# copyright and license terms.
77
#
88
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
9+
# Disable line length checking for PAR fragments in module docstring
10+
# flake8: noqa E501
911
"""Read images in PAR/REC format.
1012
1113
This is yet another MRI image format generated by Philips scanners. It is an
@@ -15,7 +17,7 @@
1517
versions could probably be supported, but we need example images to test
1618
against. If you want us to support another version, and have an image we can
1719
add to the test suite, let us know. You would make us very happy by submitting
18-
a pull request. # noqa
20+
a pull request.
1921
2022
###############
2123
PAR file format

0 commit comments

Comments
 (0)