carlosqueiroz / dicompyler

Automatically exported from code.google.com/p/dicompyler
0 stars 0 forks source link

ROIDisplayColor encoded using forward slashes instead of backslashes #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Read a DICOM RT Structure Set from PLUNC

What is the expected output? What do you see instead?
dicompyler should properly parse the color data from each structure / ROI, but 
instead it produces the following traceback:

dicompyler: INFO: _convert: Could not convert value ''255/0/0'' to VR 'IS' in 
tag (3006, 002a)
dicompyler: ERROR: Unhandled exception: Traceback (most recent call last):
  File ""wx\_core.pyo"", line 14618, in <lambda>
  File ""main.py"", line 469, in OnUpdatePatientData
  File ""main.py"", line 499, in PopulateStructures
  File ""dicompyler\guiutil.pyo"", line 171, in Append
  File ""dicompyler\guiutil.pyo"", line 198, in __init__
  File ""dicompyler\guiutil.pyo"", line 241, in __init__
TypeError: iteration over a 0-d array"

The fix for this is dependent on pydicom to read the value (see: 
http://code.google.com/p/pydicom/issues/detail?id=109

If this cannot be fixed in pydicom, the value can be dropped and a random color 
can be assigned.

Original issue reported on code.google.com by bastula on 2 Jan 2012 at 7:29

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 73da9833a5bd.

Original comment by bastula on 8 Jan 2012 at 11:59