From 148dd8e628d8f5bce96c75f1189b33758a356b56 Mon Sep 17 00:00:00 2001 From: Chris Bridge Date: Wed, 18 Mar 2026 11:05:25 -0400 Subject: [PATCH] Clarify docstings of get_volume_positions and get_series_volume_positions --- src/highdicom/spatial.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/highdicom/spatial.py b/src/highdicom/spatial.py index 5ee7be998..26917de59 100644 --- a/src/highdicom/spatial.py +++ b/src/highdicom/spatial.py @@ -3505,10 +3505,9 @@ def get_series_volume_positions( the slice spacing. If the image positions do not represent a regularly-spaced volume, returns None. Union[List[int], None]: - List with the same length as the number of image positions. Each - element gives the zero-based index of the corresponding input position - in the volume. If the image positions do not represent a volume, - returns None. + List with the same length as the ``datasets`` input. Each element gives + the zero-based index of the corresponding dataset's position in the + volume. If the image positions do not represent a volume, returns None. """ # noqa: E501 if len(datasets) == 0: @@ -3665,8 +3664,8 @@ def get_volume_positions( the slice spacing. If the image positions do not represent a regularly-spaced volume, returns None. Union[List[int], None]: - List with the same length as the number of image positions. Each - element gives the zero-based index of the corresponding input position + List with the same length as the ``image_positions`` input. Each + element gives the zero-based index of the corresponding image position in the volume. If the image positions do not represent a volume, returns None.