Skip to content

Commit

Permalink
?????
Browse files Browse the repository at this point in the history
  • Loading branch information
NickofTime6 committed Dec 13, 2023
1 parent a62702c commit be17a9b
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/view/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,8 @@ class RocketView:

def display_data(self, data):
# Print the headers
<<<<<<< HEAD
self.write_data(data)
print("{:<15} {:<15} \t\t {:<15}".format("Sensor type", "Timestamp", "Sensor data"))
=======
print(data)
print(
"{:<15} {:<15} \t\t {:<15}".format(
"Sensor type", "Timestamp", "Sensor data"
)
)
>>>>>>> 5c1abdc9c0852defc974838c4fb5025b56e5d746
# Loop through the data and print each item
sensors = [
"Temp1",
Expand All @@ -38,24 +29,12 @@ def display_data(self, data):
i += 1
j += 1
while i < 7:
<<<<<<< HEAD
print(sensors[i] + "\t" + str(data[0]) + "\t",
'{0:.1f}'.format(data[j]),
'\t{0:.1f}'.format(data[j+1]),
'\t{0:.1f}'.format(data[j+2]), end="\n")
i+=1
j+=3
=======
print(
sensors[i] + "\t" + str(data[0]) + "\t",
"{0:.2f}".format(data[j]),
"\t{0:.2f}".format(data[j + 1]),
"\t{0:.2f}".format(data[j + 2]),
end="\n",
)
i += 1
j += 3
>>>>>>> 5c1abdc9c0852defc974838c4fb5025b56e5d746
"""
print(sensors[i] + "\t" + str(data[0]),
'{0:.2f}'.format(data[j]),
Expand Down

0 comments on commit be17a9b

Please sign in to comment.