diff --git a/src/services/io_services.py b/src/services/io_services.py index c445645..03941c6 100644 --- a/src/services/io_services.py +++ b/src/services/io_services.py @@ -15,3 +15,9 @@ def save_rps_totals(totals, path): wtr = csv.writer(result) for k, v in totals.items(): wtr.writerow([k,v]) + +def save_rps_above_threshold(readings, path): + with open(path, mode="w", newline='') as result: + wtr = csv.writer(result) + for item in readings: + wtr.writerow([item])