Skip to content

Commit

Permalink
Fix plane positions for parametric maps with multiple mappings (#141)
Browse files Browse the repository at this point in the history
* Fix index of plane positions in parametric maps

* Increase package version
  • Loading branch information
hackermd authored Dec 13, 2021
1 parent 18dd62d commit 5064694
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/highdicom/pm/sop.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ def __init__(
pixel_array
)
if pixel_data_type == _PixelDataType.USHORT:
self.BitsAllocated = pixel_array.itemsize * 8
self.BitsAllocated = int(pixel_array.itemsize * 8)
self.BitsStored = self.BitsAllocated
self.HighBit = self.BitsStored - 1
self.PixelRepresentation = 0
Expand Down Expand Up @@ -674,7 +674,7 @@ def __init__(
np.where(
(dimension_position_values[idx] == pos)
)[0][0] + 1
for idx, pos in enumerate(plane_position_values[j])
for idx, pos in enumerate(plane_position_values[i])
]

pffg_item.FrameContentSequence = [frame_content_item]
Expand Down
2 changes: 1 addition & 1 deletion src/highdicom/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.13.1'
__version__ = '0.13.2rc'

0 comments on commit 5064694

Please sign in to comment.