suever / pydicom-experimental

pydicom test
0 stars 1 forks source link

Assignment to data element changes type #55

Closed suever closed 9 years ago

suever commented 9 years ago

From danin...@netscape.net on August 25, 2009 14:49:46

What steps will reproduce the problem? >>> ds = dicom.read_file('dicomfile.dcm')

type(ds.SeriesInstanceUID) <class 'dicom.UID.UID'> ds.SeriesInstanceUID = '1.2.3.01' type(ds.SeriesInstanceUID) <type 'str'>

similar behavior after:

ds.SeriesInstanceUID += '.1' What is the expected output? What do you see instead? Not sure whether this is desired/able What version of the product are you using? >>> dicom.version '0.9.4svn'

Original issue: http://code.google.com/p/pydicom/issues/detail?id=55

suever commented 9 years ago

From darcymason@gmail.com on November 08, 2009 11:33:42

Fixed in revision aa61eab18e . Added check for UI in _convert function of dataelement, and new in UID class to prevent it from converting twice.

Status: Fixed