Skip to content

Spacing Between Slices attribute is of type 1C and may be empty #16

Open
@bathienle

Description

@bathienle

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions