Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 3, 2023
1 parent 9c99bb1 commit 62f3180
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions monai/transforms/compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,10 @@ def transform_iterator(compose, step_into_all=False):

if isinstance(compose, (list, tuple)):
transforms = compose
parent = None
elif type(compose) is Compose or (step_into_all is True and isinstance(compose, Compose)):
transforms = compose.transforms
parent = compose
else:
transforms = [compose]
parent = None

for i in range(len(transforms)):
tx = transforms[i]
Expand Down Expand Up @@ -227,7 +224,7 @@ def execute_compose(

# trim the set of transforms to be executed accoring to start and end
# parameter values
if start != 0 or end != None:
if start != 0 or end is not None:
transforms_ = generate_subcompose(transforms, start, end)
else:
transforms_ = transforms
Expand Down

0 comments on commit 62f3180

Please sign in to comment.