PyDICOM Returns KeyError Even Though Field Exists
PyDICOM Returns KeyError Even Though Field Exists Question: I’m reading in a DICOM with pydicom.read_file() like this: x = pydicom.read_file(/path/to/dicom/) This returns an instance of FileDataset but I get an error when trying to access a value like this: x[0x20,0x32] OUTPUT: *** KeyError: (0020, 0032) I also tried accessing the value like this: x.ImagePositionPatient OUTPUT: …