AustralianCancerDataNetwork / pydicer

PYthon Dicom Image ConvertER
https://australiancancerdatanetwork.github.io/pydicer/
Apache License 2.0
20 stars 4 forks source link

#78 metadata visualiser #94

Closed Janetxxx closed 2 years ago

Janetxxx commented 2 years ago

Write metadata about image in top-right white space for the imaging Visualiser:

Didn't find MaximumDose attribute in pydicom dataset.

pchlap commented 2 years ago

Hi @Janetxxx,

the error being reported in the tests here is due to the change in the directory structure etc. There is now a function called load_object_metadata which makes loading the meta data for an image easier.

You can find the function here: from pydicer.utils import load_object_metadata

And it should be as simple as:

ds_dict = load_object_metadata(row)

The function will find and read the json for you :)