Read DICOm metadata (ie.:nominal slice thickness)

Using the CatPhan module, I get constantly errors at measuring slice thinckness.

Any ideas on how to acces Dicom metadata within pylinac to check nominal slice thickness? I guess pylinac does it in some way, since it compares “measured” againstthickness against “nominal” one…


You can look at the slice thickness attribute of the first image in the series likes this:

ct = pylinac.CatPhan604.from_demo_images()
thickness = ct.dicom_stack[0].metadata.SliceThickness