dicompyler icon indicating copy to clipboard operation
dicompyler copied to clipboard

Update the Anonymization plugin so that it writes out the file meta info for all files

Open GoogleCodeExporter opened this issue 10 years ago • 0 comments

What steps will reproduce the problem?
1. Try to anonymize a file that does not have a file meta info with:
* (0002, 0002) Media Storage SOP Class UID
* (0002, 0003) Media Storage SOP Instance UID

What is the expected output? What do you see instead?
It should anonymize normally, however the plugin will crash.

There was a change in pydicom 0.9.4 that moved the file meta info to a separate 
object (ds.file_meta). This object needs to be updated with the correct Media 
Storage SOP Class and Instance tags before writing out the file, as some DICOM 
files do not contain them and will fail upon writing out to disk.


Original issue reported on code.google.com by bastula on 14 Jul 2010 at 3:59


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

GoogleCodeExporter avatar Jun 10 '15 15:06 GoogleCodeExporter