Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anonymization failure cites BytesIO object instead of input filename #159

Open
blairconrad opened this issue Nov 2, 2023 · 1 comment
Open
Labels
bug Something isn't working

Comments

@blairconrad
Copy link
Owner

blairconrad commented Nov 2, 2023

Anonymizing a Deflated Explicit VR Little Endian (1.2.840.10008.1.2.1.99) file results in dicognito erroring out with

Error occurred while converting <_io.BytesIO object at 0x0000022DD4CEA160>. Aborting.
Traceback (most recent call last):
  File "E:\Dev\dicognito\.venv\dicognito\Lib\site-packages\pydicom\tag.py", line 28, in tag_in_exception
    yield
…

The "<_io.BytesIO object at 0x0000022DD4CEA160>" should be the input filename.

Occurs whether using --output-directory or --in-place.

@blairconrad
Copy link
Owner Author

Caused by pydicom/pydicom#1937. The dataset's filename attribute is replaced with a BytesIO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant