On Dec 9, 9:07 am, MMoury <
marc.mo...@yahoo.fr> wrote:
> for v in I:
>
> if v[1].description != "Pixel Data":
Looks like you are missing the parentheses -- should be v
[1].description(). (I probably should change that code so it is a
property rather than a function call)
> I think my items() ist a type 'tuple'...is it possible to delete the
> pixel data in my text?
Since Dataset is derived from python dict, the del method can remove
an item from a Dataset. Now that I try this, though, I realized the
key is not quite right unless you specifically say it is a Tag or use
the long value directly. So:
>>> from dicom.tag import Tag
>>> del dataset[Tag(0x7fe0,0x0010)]
Or another way:
>>> del dataset[0x7fe00010]