Skip to content

Commit 5064694

Browse files
authored
Fix plane positions for parametric maps with multiple mappings (#141)
* Fix index of plane positions in parametric maps * Increase package version
1 parent 18dd62d commit 5064694

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/highdicom/pm/sop.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ def __init__(
634634
pixel_array
635635
)
636636
if pixel_data_type == _PixelDataType.USHORT:
637-
self.BitsAllocated = pixel_array.itemsize * 8
637+
self.BitsAllocated = int(pixel_array.itemsize * 8)
638638
self.BitsStored = self.BitsAllocated
639639
self.HighBit = self.BitsStored - 1
640640
self.PixelRepresentation = 0
@@ -674,7 +674,7 @@ def __init__(
674674
np.where(
675675
(dimension_position_values[idx] == pos)
676676
)[0][0] + 1
677-
for idx, pos in enumerate(plane_position_values[j])
677+
for idx, pos in enumerate(plane_position_values[i])
678678
]
679679

680680
pffg_item.FrameContentSequence = [frame_content_item]

src/highdicom/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.13.1'
1+
__version__ = '0.13.2rc'

0 commit comments

Comments
 (0)