Skip to content

Commit 92a7625

Browse files
committed
fix ci
Signed-off-by: YunLiu <[email protected]>
1 parent 3797e0b commit 92a7625

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

monai/transforms/transform.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ def apply_transform(
137137
Union[List[ReturnType], ReturnType]: The return type of `transform` or a list thereof.
138138
"""
139139
try:
140-
if isinstance(data, (list, tuple)) and isinstance(map_items, (int, bool)):
140+
if isinstance(data, (list, tuple)) and (map_items or type(map_items) == int):
141141
# if map_items is an int, apply the transform to each item in the list `map_items` times
142-
if isinstance(map_items, int) and type(map_items) is not bool and map_items > 0:
142+
if type(map_items) == int and map_items > 0:
143143
return [
144144
apply_transform(transform, item, map_items - 2, unpack_items, log_stats, lazy, overrides)
145145
for item in data

0 commit comments

Comments
 (0)