Hi Adit,
I tried this in ipython and python interpreter sessions and I'm always
getting RawDataElement. But it must come down to something triggering
access to the data element value through the __getattr__ or
__getitem__ methods of Dataset, which will cause the conversion from
RawDataElement to DataElement. Displaying the ds in the interpreter
will do that -- all elements will be converted. Perhaps also the
autocomplete in ipython might somehow ask for the value.
You could force the conversion of all elements if you wanted. Just
iterate through them: for example:
>> for data_elem in ds: pass
should do it.
I'm considering whether to change pydicom to force this conversion
anyway, because the raw vs regular data element is causing so many
problems. I'll have to evaluate whether this can be done without
losing too much of the performance gains that going to raw reading
gave.
Regards,
Darcy
--
You received this message because you are subscribed to the Google Groups "pydicom" group.
To post to this group, send email to
pyd...@googlegroups.com.
To unsubscribe from this group, send email to
pydicom+u...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/pydicom?hl=en.