Skip to content

Commit b59aaf9

Browse files
committed
STY: Add line breaks to docstrings
1 parent 0978eed commit b59aaf9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

nibabel/nifti1.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -2353,19 +2353,22 @@ def _get_analyze_compat_dtype(arr):
23532353
>>> _get_analyze_compat_dtype(np.array([0, 4294967295]))
23542354
Traceback (most recent call last):
23552355
...
2356-
ValueError: Cannot find analyze-compatible dtype for array with dtype=int64 (min=0, max=4294967295)
2356+
ValueError: Cannot find analyze-compatible dtype for array with dtype=int64
2357+
(min=0, max=4294967295)
23572358
23582359
>>> _get_analyze_compat_dtype([0., 2.e40])
23592360
Traceback (most recent call last):
23602361
...
2361-
ValueError: Cannot find analyze-compatible dtype for array with dtype=float64 (min=0.0, max=2e+40)
2362+
ValueError: Cannot find analyze-compatible dtype for array with dtype=float64
2363+
(min=0.0, max=2e+40)
23622364
23632365
Note that real-valued complex arrays cannot be safely cast.
23642366
23652367
>>> _get_analyze_compat_dtype(np.array([1+0j]))
23662368
Traceback (most recent call last):
23672369
...
2368-
ValueError: Cannot find analyze-compatible dtype for array with dtype=complex128 (min=(1+0j), max=(1+0j))
2370+
ValueError: Cannot find analyze-compatible dtype for array with dtype=complex128
2371+
(min=(1+0j), max=(1+0j))
23692372
"""
23702373
arr = np.asanyarray(arr)
23712374
dtype = arr.dtype

0 commit comments

Comments
 (0)