You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dicomimg.next_image()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/mnt/smi-fs01-nfs/tmp/pixel-anon/venv/lib/python3.10/site-packages/DicomPixelAnon/dicomimage.py", line 340, in next_image
return self.image(frame = n)
File "/mnt/smi-fs01-nfs/tmp/pixel-anon/venv/lib/python3.10/site-packages/DicomPixelAnon/dicomimage.py", line 234, in image
pix_extracted = (self.pixel_data & self.bit_mask)
OverflowError: Python integer 65535 out of bounds for int16
Possible workaround: NPY_PROMOTION_STATE=legacy
The text was updated successfully, but these errors were encountered:
howff
linked a pull request
Dec 9, 2024
that will
close
this issue
Error from dicom_ocr.py
ERROR:root:Cannot extract frame 0 from foo.dcm (Python integer 65535 out of bounds for int16)
https://github.com/SMI/dicompixelanon/blob/main/src/applications/dicom_ocr.py#L264
Possible workaround:
NPY_PROMOTION_STATE=legacy
The text was updated successfully, but these errors were encountered: