pombreda / dicompyler

Automatically exported from code.google.com/p/dicompyler
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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