Skip to content

Commit cba4607

Browse files
Apply suggestions from code review
Co-authored-by: Matthew Brett <[email protected]>
1 parent dcf9566 commit cba4607

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nibabel/arrayproxy.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ def __init__(self, file_like, spec, *, mmap=True, order=None, keep_file_open=Non
119119
order : {None, 'F', 'C'}, optional, keyword only
120120
`order` controls the order of the data array layout. Fortran-style,
121121
column-major order may be indicated with 'F', and C-style, row-major
122-
order may be indicated with 'C'. The default order is 'F'.
122+
order may be indicated with 'C'. None gives the default order, that
123+
comes from the `_default_order` class variable.
123124
keep_file_open : { None, True, False }, optional, keyword only
124125
`keep_file_open` controls whether a new file handle is created
125126
every time the image is accessed, or a single file handle is
@@ -133,7 +134,7 @@ def __init__(self, file_like, spec, *, mmap=True, order=None, keep_file_open=Non
133134
if mmap not in (True, False, 'c', 'r'):
134135
raise ValueError("mmap should be one of {True, False, 'c', 'r'}")
135136
if order not in (None, 'C', 'F'):
136-
raise ValueError("order should be one of {'C', 'F'}")
137+
raise ValueError("order should be one of {None, 'C', 'F'}")
137138
self.file_like = file_like
138139
if hasattr(spec, 'get_data_shape'):
139140
slope, inter = spec.get_slope_inter()

0 commit comments

Comments
 (0)