dicognito
dicognito copied to clipboard
Anonymization failure cites BytesIO object instead of input filename
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
.
Caused by pydicom/pydicom#1937. The dataset's filename
attribute is replaced with a BytesIO
.