Skip to content

Commit d7c7cac

Browse files
committed
DOC: Fixed docstrings referring to keep_file_open
1 parent 093ae6e commit d7c7cac

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

nibabel/analyze.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -959,8 +959,8 @@ def from_file_map(klass, file_map, mmap=True, keep_file_open='auto'):
959959
``'auto'`` (the default), and the optional ``indexed_gzip``
960960
dependency is present, a single file handle is created and
961961
persisted. If ``indexed_gzip`` is not available, behaviour is the
962-
same as if ``keep_file_open is False``. If ``file_like`` is an
963-
open file handle, this setting has no effect.
962+
same as if ``keep_file_open is False``. If ``file_map`` refers
963+
to an open file handle, this setting has no effect.
964964
965965
Returns
966966
-------
@@ -1011,8 +1011,7 @@ def from_filename(klass, filename, mmap=True, keep_file_open='auto'):
10111011
``'auto'`` (the default), and the optional ``indexed_gzip``
10121012
dependency is present, a single file handle is created and
10131013
persisted. If ``indexed_gzip`` is not available, behaviour is the
1014-
same as if ``keep_file_open is False``. If ``file_like`` is an
1015-
open file handle, this setting has no effect.
1014+
same as if ``keep_file_open is False``.
10161015
10171016
Returns
10181017
-------

nibabel/spm99analyze.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ def from_file_map(klass, file_map, mmap=True, keep_file_open='auto'):
270270
``'auto'`` (the default), and the optional ``indexed_gzip``
271271
dependency is present, a single file handle is created and
272272
persisted. If ``indexed_gzip`` is not available, behaviour is the
273-
same as if ``keep_file_open is False``. If ``file_like`` is an
274-
open file handle, this setting has no effect.
273+
same as if ``keep_file_open is False``. If ``file_map`` refers to
274+
an open file handle, this setting has no effect.
275275
276276
Returns
277277
-------

0 commit comments

Comments
 (0)