Print Data

This commit is contained in:
Cal Wing 2024-08-26 20:29:37 +10:00
parent bc34667a19
commit 89ce01b02a
2 changed files with 9 additions and 3 deletions

View File

@ -1,6 +1,6 @@
import os
root = "images\\pressure"
root = "images\\cp"
for path, subdirs, files in os.walk(root):
for name in files:

10
main.py
View File

@ -382,7 +382,7 @@ if __name__ == '__main__':
graph["plots"].append(plt)
makeGraph(graph, False, figSavePath="./images/cp/__{0}.png")
if True:
if False:
aoa = [a[4] for a in cp_pain_data]
forces = [a[1] for a in cp_pain_data]
# Force Graphs
@ -421,7 +421,13 @@ if __name__ == '__main__':
makeGraph(graph, False, figSavePath="./images/{0}.png")
if False:
print("\n\n")
print(raw_data["rpm"])
for aoa, force in [(a[4], a[1]) for a in cp_pain_data]:
print(f"{aoa:d}\\textdegree & {force[0]:.3f} & {force[1]:.3f} & {force[2]:.3f} \\\\")
print("-"*50)
print("\n\n")
print("Complete")