Skip to content

Commit

Permalink
[AGENT] proper f-strings
Browse files Browse the repository at this point in the history
  • Loading branch information
JPCatarino committed Nov 20, 2021
1 parent b478a3d commit 48474c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mainRob.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def c2_brain(self, ir_sensors, robot_location):
elif self.robot_state == RobotStates.FINISHED:
self.map[self.map_starting_spot.x][self.map_starting_spot.y] = 'I'
self.print_map_to_file(filename)
print("Map printed to {filename}")
print(f"Map printed to {filename}")
self.finish()

def c3_brain(self, ir_sensors, ground, robot_location):
Expand Down Expand Up @@ -372,7 +372,7 @@ def c3_brain(self, ir_sensors, ground, robot_location):
elif self.robot_state == RobotStates.FINISHED:
# Print map, path and distance to file, exit
print("Printed map and plans to planning.out")
print("Printed path to {filename}")
print(f"Printed path to {filename}")

for beacon, location in self.beacon_location.items():
self.map[location.y][location.x] = str(beacon)
Expand Down

0 comments on commit 48474c7

Please sign in to comment.