1
0
Fork 0
Browse Source

create io_services.py.

The inital services files. This provides a function to load the CSV
file of the raw test data (factory1 Light Meter).
stable
Craig Oates 3 years ago
parent
commit
47636b3b18
  1. 11
      src/services/io_services.py

11
src/services/io_services.py

@ -0,0 +1,11 @@
import csv
import datetime
def load_raw_data(path):
data = dict()
with open(path) as csv_file:
csv_reader = csv.reader(csv_file, delimiter=",")
for r in csv_reader:
if (r[1] != "Time Stamp"):
data[r[1]] = r[2]
return data