Skip to content

Commit a1e7d11

Browse files
authored
py2 to py3 transition error in dicom loading fixed
1 parent 7ddc1af commit a1e7d11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

medpy/io/header.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def __get_offset_pydicom(hdr):
266266
return tuple([0] * 3)
267267
else: # 2D case
268268
if "ImagePositionPatient" in hdr:
269-
return tuple(map(float, hdr.ImagePositionPatient)[:2])
269+
return tuple(map(float, hdr.ImagePositionPatient))[:2]
270270
else:
271271
logger = Logger.getInstance()
272272
logger.warning('No offset defined in DICOM header, assuming none exists.')

0 commit comments

Comments
 (0)