Closed
Description
As of indexed_gzip 0.7.0, the default behavior of a SafeIndexedGzipFile
is to close the underlying file between accesses. This pretty much obviates the machinery @pauldmccarthy built around the keep_file_open
option in Opener, ArrayProxy, AnalyzeImage and MGHImage.
As we did have a release, we're going to need to deprecate the API, but I think the following scheme should be reasonably safe:
- Set minimum
indexed_gzip
version to 0.7.0 - Remove any effects of
keep_file_open
- it only had any effect ifindexed_gzip
was installed ANDkeep_file_open
was'auto'
orTrue
- and update docs to say "has no effect, will be removed vXXX" - Any function that currently takes
keep_file_open
raises aDeprecationWarning
if it is notNone
. - Remove
arrayproxy.KEEP_FILE_OPEN_DEFAULT
- This one I'm not sure of. I think people would only be setting it, not reading it, but maybe it should stay just in case. - Schedule full removal of option for v4.0
What do y'all think?
Metadata
Metadata
Assignees
Labels
No labels