Repository navigation
fix: preserve empty sequence items when reading - #608
Merged
wayfarer3130 merged 2 commits intoNov 24, 2026
Merged
Conversation
✅ Deploy Preview for dcmjs2 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
…sequence-items Co-Authored-By: Claude Opus 5.5 <[email protected]>
✅ Deploy Preview for dcmjs2 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
wayfarer3130
approved these changes
Nov 24, 2026
|
🎉 This PR is included in version 0.53.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This was referenced Nov 24, 2026
wayfarer3130
added a commit
that referenced
this pull request
Nov 25, 2026
SequenceOfItems.readBytes skipped an item with no bytes, so later items
moved to a lower index. It now pushes {} for an empty item. The async
reader, fromPart10 and fromPart10Stream already kept empty items; a new
test checks all four readers in both VR modes with defined and
undefined lengths.
Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We were dropping empty SQ items when reading, which shifted later items out of position.
We now keep an empty dataset for each empty item and cover defined and undefined lengths in both VR modes.
We tested the fix with regression tests, the full test suite, and the issue reproducer.
Fixes #606
— ChipLab