Skip to main content
12 events
when toggle format what by license comment
Jan 28, 2022 at 14:31 history edited MrBean Bremen CC BY-SA 4.0
deleted 3 characters in body
Apr 23, 2021 at 14:49 history edited MrBean Bremen CC BY-SA 4.0
Add link to issue
Feb 19, 2020 at 16:11 comment added Devin Baillie Thanks so much, that's really helpful.
Feb 15, 2020 at 8:02 history edited MrBean Bremen CC BY-SA 4.0
added 30 characters in body
Feb 14, 2020 at 17:38 comment added MrBean Bremen I added the code to the answer. Regarding VR OW: this a binary VR, and the value is supposed to show as bytes, so nothing unexpected here.
Feb 14, 2020 at 17:36 history edited MrBean Bremen CC BY-SA 4.0
added 727 characters in body
Feb 13, 2020 at 21:15 comment added Devin Baillie That would be helpful, thanks. The only part I'm not sure about is how to re-encode the value from bytes to the various other types. I can reset the VR (eg. with ds[0x00091005].VR = 'OW'), but the value still shows as bytes (eg b'\x1d\xa6h\x12\x08\x07pZ\x0f9\x0e\xc2')
Feb 13, 2020 at 20:39 comment added MrBean Bremen Well, you could write a little conversion program, sure - basically iterate over the dataset, find all private tags with VR UN, lookup the private dictionary entry for them and replace them in the dataset if found, though you would need to get the private creator for each entry. I could put something together later if you want, don't have the time today.
Feb 13, 2020 at 20:29 comment added Devin Baillie Is there any way to manually force a conversion for an individual tag? I could then just write a script to check them all and do the conversion.
Feb 13, 2020 at 20:17 comment added Devin Baillie Thanks for the reply. I submitted a feature request for some ability to force a conversion.
Feb 13, 2020 at 20:14 vote accept Devin Baillie
Feb 12, 2020 at 19:20 history answered MrBean Bremen CC BY-SA 4.0