Skip to content

Commit 6e05574

Browse files
committed
Apply formatting changes from pre-commit hooks.
1 parent c95b7eb commit 6e05574

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

augraphy/base/augmentationpipeline.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -751,9 +751,11 @@ def apply_phase(self, data, layer, phase):
751751
data["log"]["time"].append((augmentation, elapsed))
752752

753753
# not "OneOf" or "AugmentationSequence"
754-
if isinstance(augmentation, Augmentation) \
755-
and not isinstance(augmentation, AugmentationSequence) \
756-
and not isinstance(augmentation, OneOf):
754+
if (
755+
isinstance(augmentation, Augmentation)
756+
and not isinstance(augmentation, AugmentationSequence)
757+
and not isinstance(augmentation, OneOf)
758+
):
757759
# unpacking augmented image, mask, keypoints and bounding boxes from output
758760
if (mask is not None) or (keypoints is not None) or (bounding_boxes is not None):
759761
result, mask, keypoints, bounding_boxes = result

0 commit comments

Comments
 (0)