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

Error when running create_ricord_dataset.ipynb #164

Closed
codaibk opened this issue Apr 8, 2021 · 2 comments
Closed

Error when running create_ricord_dataset.ipynb #164

codaibk opened this issue Apr 8, 2021 · 2 comments

Comments

@codaibk
Copy link

codaibk commented Apr 8, 2021

Hello,
When i run create_ricord_dataset.ipynb, it gets this error.
AttributeError: Unable to convert the pixel data as the following required elements are missing from the dataset: PixelData.
Do you know how to fix it?
Thanks.

@haydengunraj
Copy link
Collaborator

haydengunraj commented Apr 8, 2021

Hi @codaibk ,

This is an odd error which I haven't seen before. For context, the RICORD dataset is provided in DICOM format, which is essentially a structured medical image with a detailed header and a number of data fields. PixelData is the field containing the actual image data, and so it seems that this error is saying that one of the images has no image data.

Would you be able to print out the particular filename for which this error occurs? Something like this should do the trick:

try:
    # the code where the error occurs
except AttributeError:
    print(<filename variable>)

If you could provide the full traceback rather than just the error, that would also be helpful.

@haydengunraj
Copy link
Collaborator

Closing due to inactivity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants