Skip to content

Commit 10edabd

Browse files
committed
DCO Remediation Commit for Ben Murray <[email protected]>
I, Ben Murray <[email protected]>, hereby add my Signed-off-by to this commit: 1759f96 Signed-off-by: Ben Murray <[email protected]>q:
1 parent dd5ad30 commit 10edabd

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

monai/transforms/compose.py

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,26 @@ def execute(
192192
start: int = 0,
193193
end: int | None = None,
194194
threading: bool = False,
195-
):
195+
) -> NdarrayOrTensor:
196+
"""
197+
``execute`` provides the implementation that Compose uses to execute a sequence
198+
of transforms. As well as being used by Compose, it can be used by subclasses of
199+
Compose and by code that doesn't have a Compose instance but needs to execute a
200+
sequence of transforms is if it were executed by Compose. For the most part, it
201+
is recommended to use Compose instances, however.
202+
Args:
203+
input_:
204+
transforms:
205+
map_items:
206+
unpack_items:
207+
log_stats:
208+
start:
209+
end:
210+
threading:
211+
212+
Returns:
213+
214+
"""
196215
end_ = len(transforms) if end is None else None
197216
if start > end_:
198217
raise ValueError(f"'start' ({start})must be less than 'end' ({end_})")

0 commit comments

Comments
 (0)