Open
Description
Description
Spacing Between Slices
attribute is of type 1C and may be empty.
In the case where the attribute is empty, the parsing of physical size will failed as show by the snippet code
ADT = "Acquisition DateTime"
PMS = "Pixel Measures Sequence"
SFGS = "Shared Functional Groups Sequence"
SBS = "Spacing Between Slices"
imd.physical_size_z = self.parse_physical_size(metadata[SFGS][0][PMS][0][SBS])
if "Acquisition DateTime" in metadata:
imd.acquisition_datetime = self.parse_acquisition_date(metadata[ADT])
Task
- Check before the access to the dictionary