Skip to content

Intent to deprecate: keep_file_open #573

Closed
@effigies

Description

@effigies

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 if indexed_gzip was installed AND keep_file_open was 'auto' or True - and update docs to say "has no effect, will be removed vXXX"
  • Any function that currently takes keep_file_open raises a DeprecationWarning if it is not None.
  • 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions