Repository navigation
Conversation
Collaborator
|
Hi @vera-rubin, thanks for this fix. As a note, it was a little hard to figure out from your message what the issue actually is, but I dug into it a little bit and the issues are real and your fix is appropriate. |
CPBridge
approved these changes
Oct 30, 2026
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 get
AttributeErrorfromImage.get_frames()on float32/float64 Parametric Maps with a nonidentity real-world mapping. With slope 2 and intercept 1, the documented default should map[0, 1, 2, 3]to[1, 3, 5, 7]. Callingget_stored_frame()orget_stored_frames()first also fails on missingPixelRepresentation, which DICOM forbids for float pixel data. These accessors should return the original stored values.This change initializes float input dtypes for loaded images and passes the detected pixel-data keyword through stored-frame decoding.
We've added a parameterized regression test for uint16, float32, and float64 with eager and lazy reading, and ran the existing image, Parametric Map, reader, and decoder tests.
— ChipLab