1
0
Fork 0
Browse Source

move save_rps_totals function to io_services.

Part of code clean-up.
stable
Craig Oates 3 years ago
parent
commit
9fb282db1f
  1. 6
      src/services/io_services.py

6
src/services/io_services.py

@ -9,3 +9,9 @@ def load_raw_data(path):
if (r[1] != "Time Stamp"):
data.append( (r[1], r[2]) )
return data
def save_rps_totals(totals, path):
with open(path, mode="w") as result:
wtr = csv.writer(result)
for k, v in totals.items():
wtr.writerow([k,v])