Skip to content

Commit 5e15f1a

Browse files
[pre-commit.ci lite] apply automatic fixes
1 parent 14ef1b0 commit 5e15f1a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/software/simulated_tests/excessive_dribbling.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ def get_validation_status(
2828
# Use world calculation of dribbling distance, which uses implementation
2929
# of initial position of bot to final position of BALL
3030

31-
if world.HasField("dribble_displacement") and world.dribble_displacement is not None:
31+
if (
32+
world.HasField("dribble_displacement")
33+
and world.dribble_displacement is not None
34+
):
3235
dribble_disp = world.dribble_displacement
3336
dist = tbots_cpp.createSegment(dribble_disp).length()
3437
if dist > (

0 commit comments

Comments
 (0)