@@ -934,7 +934,7 @@ def set_data_dtype(self, dtype):
934934
935935 @classmethod
936936 @kw_only_meth (1 )
937- def from_file_map (klass , file_map , mmap = True , keep_file_open = 'indexed ' ):
937+ def from_file_map (klass , file_map , mmap = True , keep_file_open = 'auto ' ):
938938 ''' class method to create image from mapping in `file_map ``
939939
940940 Parameters
@@ -950,13 +950,13 @@ def from_file_map(klass, file_map, mmap=True, keep_file_open='indexed'):
950950 `mmap` value of True gives the same behavior as ``mmap='c'``. If
951951 image data file cannot be memory-mapped, ignore `mmap` value and
952952 read array from file.
953- keep_file_open : { 'indexed ', True, False }, optional, keyword only
953+ keep_file_open : { 'auto ', True, False }, optional, keyword only
954954 `keep_file_open` controls whether a new file handle is created
955955 every time the image is accessed, or a single file handle is
956956 created and used for the lifetime of this ``ArrayProxy``. If
957957 ``True``, a single file handle is created and used. If ``False``,
958958 a new file handle is created every time the image is accessed. If
959- ``'indexed '`` (the default), and the optional ``indexed_gzip``
959+ ``'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
962962 same as if ``keep_file_open is False``. If ``file_like`` is an
@@ -988,7 +988,7 @@ def from_file_map(klass, file_map, mmap=True, keep_file_open='indexed'):
988988
989989 @classmethod
990990 @kw_only_meth (1 )
991- def from_filename (klass , filename , mmap = True , keep_file_open = 'indexed ' ):
991+ def from_filename (klass , filename , mmap = True , keep_file_open = 'auto ' ):
992992 ''' class method to create image from filename `filename`
993993
994994 Parameters
@@ -1002,13 +1002,13 @@ def from_filename(klass, filename, mmap=True, keep_file_open='indexed'):
10021002 `mmap` value of True gives the same behavior as ``mmap='c'``. If
10031003 image data file cannot be memory-mapped, ignore `mmap` value and
10041004 read array from file.
1005- keep_file_open : { 'indexed ', True, False }, optional, keyword only
1005+ keep_file_open : { 'auto ', True, False }, optional, keyword only
10061006 `keep_file_open` controls whether a new file handle is created
10071007 every time the image is accessed, or a single file handle is
10081008 created and used for the lifetime of this ``ArrayProxy``. If
10091009 ``True``, a single file handle is created and used. If ``False``,
10101010 a new file handle is created every time the image is accessed. If
1011- ``'indexed '`` (the default), and the optional ``indexed_gzip``
1011+ ``'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
10141014 same as if ``keep_file_open is False``. If ``file_like`` is an
0 commit comments