Skip to content

Deprecate folder reading by DICOM #685

Closed

Description

@FirefoxMetzger

The purpose of this issue is to discuss (and decide) if it is possible to deprecate DICOM's ability to read folders, or if we can find a backward-compatible way to change DICOM's behavior so that Request can stop accepting folder uris.

Currently, DICOM is the only plugin that accepts folders as inputs (which it will then process to read all files in it). However, our general policy is to not read folders directly. In fact, most plugins will break if one attempts to do so. After discussing with @almarklein (#680 (comment) and the following 4 comments), we still agree that it is better to not support folder reading in general (beyond legacy support). In an effort to make the API consistent, this would imply that we should change DICOM to also not read folders directly so that we can drop any legacy support for folders in Request. (Tangent: This would finally take care of Request("") being a valid request, and allow us to raise a useful exception instead.)

The question now is if we can keep DICOM's ability to read folders, e.g., via a new kwarg for DICOM, while making iio.imread("example/folder") invalid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions