Skip to content

Commit 9a91995

Browse files
committed
some dicom headers had an empty string in SliceThickness
1 parent bb8c6fa commit 9a91995

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/nicom/dicomwrappers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def voxel_sizes(self):
201201
zs = self.get('SpacingBetweenSlices')
202202
if zs is None:
203203
zs = self.get('SliceThickness')
204-
if zs is None:
204+
if zs is None or zs == '':
205205
zs = 1
206206
# Protect from python decimals in pydicom 0.9.7
207207
zs = float(zs)

0 commit comments

Comments
 (0)