feat: add main.py

This commit is contained in:
2026-09-25 11:57:02 +08:00
parent 3287204131
commit 2ea662342a

12
main.py Normal file
View File

@@ -0,0 +1,12 @@
from flight_quality.report import evaluate
def main() -> None:
data = "time_ms,temperature_c,voltage_v\n0,22.5,12.1\n100,23.0,12.0\n100,120,12.1\n200,24.0,bad\n"
report = evaluate(data)
for key, value in report.items():
print(f"{key}: {value}")
if __name__ == "__main__":
main()