Skip to content

Commit

Permalink
remove format use
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCaha committed Jul 28, 2024
1 parent b2cf93e commit 91102a6
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions los_tools/classes/classes_los.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,9 @@ def __parse_points(self, points: List[List[float]]) -> None:
def __str__(self):
string = ""
for i, point in enumerate(self.points):
string += "{} - {} {} {} (prev. {}) - vis. {} hor. {} \n".format(
i,
point[self.DISTANCE],
point[self.Z],
point[self.VERTICAL_ANGLE],
self.previous_max_angle[i],
self.visible[i],
self.horizon[i],
string += (
f"{i} - {point[self.DISTANCE]} {point[self.Z]} {point[self.VERTICAL_ANGLE]} "
f"(prev. {self.previous_max_angle[i]}) - vis. {self.visible[i]} hor. {self.horizon[i]} \n"
)
return string

Expand Down

0 comments on commit 91102a6

Please sign in to comment.