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 Oct 13, 2023
1 parent 1d78c33 commit a9ee975
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion monai/transforms/compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def _recursive_check(tx):
if isinstance(Randomizable) and tx.is_random():
return True
return False

for t in self.transforms:
if _recursive_check(t) is True:
return True
Expand Down
2 changes: 1 addition & 1 deletion monai/transforms/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def randomize(self, data: Any) -> None:
NotImplementedError: When the subclass does not override this method.
"""
raise NotImplementedError(f"Subclass {self.__class__.__name__} must implement this method.")

def is_random(self):
"""
This method indicates whether this particular instance of a Randomizable is operating randomly or not.
Expand Down

0 comments on commit a9ee975

Please sign in to comment.