Commit 1182aa9
authored
Fix DICOM file storage to include preamble (#13)
Use enforce_file_format=True with dcmwrite() to ensure the 128-byte
preamble and 'DICM' prefix are written. Without this, stored files
were invalid DICOM files that Manage couldn't read.1 parent 22a4955 commit 1182aa9
1 file changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
75 | | - | |
76 | 74 | | |
77 | 75 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
0 commit comments