Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
  • Loading branch information
KumoLiu committed Jan 6, 2025
1 parent 92a7625 commit b00ed2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monai/transforms/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ def apply_transform(
Union[List[ReturnType], ReturnType]: The return type of `transform` or a list thereof.
"""
try:
if isinstance(data, (list, tuple)) and (map_items or type(map_items) == int):
if isinstance(data, (list, tuple)) and (map_items or type(map_items) is int):
# if map_items is an int, apply the transform to each item in the list `map_items` times
if type(map_items) == int and map_items > 0:
if type(map_items) is int and map_items > 0:
return [
apply_transform(transform, item, map_items - 2, unpack_items, log_stats, lazy, overrides)
for item in data
Expand Down

0 comments on commit b00ed2d

Please sign in to comment.