@@ -934,7 +934,7 @@ def set_data_dtype(self, dtype):
934
934
935
935
@classmethod
936
936
@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 ' ):
938
938
''' class method to create image from mapping in `file_map ``
939
939
940
940
Parameters
@@ -950,13 +950,13 @@ def from_file_map(klass, file_map, mmap=True, keep_file_open='indexed'):
950
950
`mmap` value of True gives the same behavior as ``mmap='c'``. If
951
951
image data file cannot be memory-mapped, ignore `mmap` value and
952
952
read array from file.
953
- keep_file_open : { 'indexed ', True, False }, optional, keyword only
953
+ keep_file_open : { 'auto ', True, False }, optional, keyword only
954
954
`keep_file_open` controls whether a new file handle is created
955
955
every time the image is accessed, or a single file handle is
956
956
created and used for the lifetime of this ``ArrayProxy``. If
957
957
``True``, a single file handle is created and used. If ``False``,
958
958
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``
960
960
dependency is present, a single file handle is created and
961
961
persisted. If ``indexed_gzip`` is not available, behaviour is the
962
962
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'):
988
988
989
989
@classmethod
990
990
@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 ' ):
992
992
''' class method to create image from filename `filename`
993
993
994
994
Parameters
@@ -1002,13 +1002,13 @@ def from_filename(klass, filename, mmap=True, keep_file_open='indexed'):
1002
1002
`mmap` value of True gives the same behavior as ``mmap='c'``. If
1003
1003
image data file cannot be memory-mapped, ignore `mmap` value and
1004
1004
read array from file.
1005
- keep_file_open : { 'indexed ', True, False }, optional, keyword only
1005
+ keep_file_open : { 'auto ', True, False }, optional, keyword only
1006
1006
`keep_file_open` controls whether a new file handle is created
1007
1007
every time the image is accessed, or a single file handle is
1008
1008
created and used for the lifetime of this ``ArrayProxy``. If
1009
1009
``True``, a single file handle is created and used. If ``False``,
1010
1010
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``
1012
1012
dependency is present, a single file handle is created and
1013
1013
persisted. If ``indexed_gzip`` is not available, behaviour is the
1014
1014
same as if ``keep_file_open is False``. If ``file_like`` is an
0 commit comments