Commit 08f6678fee795d981a5fb1a973d6a58e27d2f23a
1 parent
ef8b84ed
Exists in
master
and in
6 other branches
FIX: Slice thickness tag incorrect
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
invesalius/reader/dicom.py
@@ -1347,11 +1347,11 @@ class Parser(): | @@ -1347,11 +1347,11 @@ class Parser(): | ||
1347 | 1347 | ||
1348 | DICOM standard tag (0x0018,0x0050) was used. | 1348 | DICOM standard tag (0x0018,0x0050) was used. |
1349 | """ | 1349 | """ |
1350 | - tag = gdcm.Tag(0x0018, 0x1050) | 1350 | + tag = gdcm.Tag(0x0018, 0x0050) |
1351 | ds = self.gdcm_reader.GetFile().GetDataSet() | 1351 | ds = self.gdcm_reader.GetFile().GetDataSet() |
1352 | if ds.FindDataElement(tag): | 1352 | if ds.FindDataElement(tag): |
1353 | data = str(ds.GetDataElement(tag).GetValue()) | 1353 | data = str(ds.GetDataElement(tag).GetValue()) |
1354 | - | 1354 | + print data |
1355 | if (data): | 1355 | if (data): |
1356 | return float(data) | 1356 | return float(data) |
1357 | return 0 | 1357 | return 0 |