-
-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
write: pad certain VRs with spaces instead of null bytes #81
write: pad certain VRs with spaces instead of null bytes #81
Conversation
Addresses #80 |
Also @suyashkumar , when you review my PR and it gets accepted and merged, can you please take care of the go.mod version bump? Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution, just had one minor requested change. After that we should be good to merge.
By the go.mod version bump, you mean tagging the this repo with a new version? Yep, I'll take care of that after merging!
…d with trailing NULL instead of spaces - per http://dicom.nema.org/medical/dicom/current/output/html/part05.html#sect_6.2
96ff260
to
522d3ec
Compare
@suyashkumar you'll need to merge this yourself I believe since I don't have write access. Thx! |
Sounds good, I’ll merge this now and will comment here when I add the tag (will do so when I get back to my computer). |
Co-authored-by: Selim Youssry <selim@ferrumhealth.com>
Ok thanks @suyashkumar , looking forward to it |
make
output:On the DICOM file where I experience issue 80, reading the DICOM file with
suyashkumar/dicom
, and then making an exact copy with this library, I get the following differences when opening in Pydicom:After the fix in this PR, and running the same experiment, these fields are now identical in
pydicom
:No more extra NULL byte
\x00
.