From 2681e2d17dd7e819b22d0061c2be7af37a27e1d7 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Wed, 25 Jul 2018 16:39:27 -0700 Subject: [PATCH] Stuff --- .../ClientApp/src/app/fetch-data/data/merged-kevin.ts | 1 + Scripts/hack_18_data_cleaner.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 BiometricsDataDashboard/ClientApp/src/app/fetch-data/data/merged-kevin.ts diff --git a/BiometricsDataDashboard/ClientApp/src/app/fetch-data/data/merged-kevin.ts b/BiometricsDataDashboard/ClientApp/src/app/fetch-data/data/merged-kevin.ts new file mode 100644 index 0000000..28dba52 --- /dev/null +++ b/BiometricsDataDashboard/ClientApp/src/app/fetch-data/data/merged-kevin.ts @@ -0,0 +1 @@ +export const mergedData : string = '[{"ts": 1532556453, "Pressure (mmHg)": 6.0}, {"ts": 1532556455, "Pressure (mmHg)": 6.0}, {"ts": 1532556457, "Pressure (mmHg)": 96.0}, {"ts": 1532556459, "Pressure (mmHg)": 38.333333333333336}, {"ts": 1532556462, "Pressure (mmHg)": 15.5}, {"ts": 1532556464, "Pressure (mmHg)": 25.666666666666668}, {"ts": 1532556466, "Pressure (mmHg)": 32.5}, {"ts": 1532556469, "Pressure (mmHg)": 46.0}, {"ts": 1532556471, "Pressure (mmHg)": 50.666666666666664}, {"ts": 1532556474, "Pressure (mmHg)": 58.0}, {"ts": 1532556477, "Pressure (mmHg)": 69.0}, {"ts": 1532556480, "Pressure (mmHg)": 85.5}, {"ts": 1532556482, "Pressure (mmHg)": 88.5}, {"ts": 1532556484, "Pressure (mmHg)": 93.33333333333333}, {"ts": 1532556487, "Pressure (mmHg)": 108.5}, {"ts": 1532556489, "Pressure (mmHg)": 112.0}, {"ts": 1532556492, "Pressure (mmHg)": 121.0}, {"ts": 1532556494, "Pressure (mmHg)": 132.0}, {"ts": 1532556496, "Pressure (mmHg)": 146.5}, {"ts": 1532556499, "Pressure (mmHg)": 149.33333333333334}, {"ts": 1532556502, "Pressure (mmHg)": 159.33333333333334}, {"ts": 1532556505, "Pressure (mmHg)": 176.5}, {"ts": 1532556507, "Pressure (mmHg)": 181.0}, {"ts": 1532556510, "Pressure (mmHg)": 192.0}, {"ts": 1532556513, "Pressure (mmHg)": 207.0}, {"ts": 1532556515, "Pressure (mmHg)": 212.0}, {"ts": 1532556518, "Pressure (mmHg)": 223.0}, {"ts": 1532556521, "Pressure (mmHg)": 232.66666666666666}, {"ts": 1532556524, "Pressure (mmHg)": 80.33333333333333}, {"ts": 1532556526, "Pressure (mmHg)": 8.0}, {"ts": 1532556529, "Pressure (mmHg)": 7.0}, {"ts": 1532556531, "Pressure (mmHg)": 10.0}, {"ts": 1532556534, "Pressure (mmHg)": 3.3333333333333335}, {"ts": 1532556536, "Pressure (mmHg)": 6.5}, {"ts": 1532556539, "Pressure (mmHg)": 7.666666666666667}, {"ts": 1532556542, "Pressure (mmHg)": 9.0}, {"ts": 1532556544, "Pressure (mmHg)": 8.666666666666666}, {"ts": 1532556547, "Pressure (mmHg)": 91.0}, {"ts": 1532556549, "Pressure (mmHg)": 51.5}, {"ts": 1532556551, "Pressure (mmHg)": 13.5}, {"ts": 1532556554, "Pressure (mmHg)": 21.666666666666668}, {"ts": 1532556556, "Pressure (mmHg)": 32.5}, {"ts": 1532556559, "Pressure (mmHg)": 37.333333333333336}, {"ts": 1532556562, "Pressure (mmHg)": 52.5}, {"ts": 1532556564, "Pressure (mmHg)": 57.333333333333336}, {"ts": 1532556567, "Pressure (mmHg)": 76.5}, {"ts": 1532556569, "Pressure (mmHg)": 79.0}, {"ts": 1532556572, "Pressure (mmHg)": 87.0}, {"ts": 1532556574, "Pressure (mmHg)": 103.5}, {"ts": 1532556577, "Pressure (mmHg)": 107.0}, {"ts": 1532556580, "Pressure (mmHg)": 114.5}, {"ts": 1532556582, "Pressure (mmHg)": 118.5}, {"ts": 1532556584, "Pressure (mmHg)": 131.5}, {"ts": 1532556586, "Pressure (mmHg)": 145.66666666666666}, {"ts": 1532556589, "Pressure (mmHg)": 155.0}, {"ts": 1532556591, "Pressure (mmHg)": 161.0}, {"ts": 1532556594, "Pressure (mmHg)": 175.0}, {"ts": 1532556597, "Pressure (mmHg)": 182.0}, {"ts": 1532556600, "Pressure (mmHg)": 192.0}, {"ts": 1532556602, "Pressure (mmHg)": 207.0}, {"ts": 1532556604, "Pressure (mmHg)": 215.5}, {"ts": 1532556607, "Pressure (mmHg)": 135.5, "HeartRate (bpm)": 66.0, "Respiration (Bpm)": 0.0}, {"ts": 1532556609, "Pressure (mmHg)": 41.666666666666664}, {"ts": 1532556612, "Pressure (mmHg)": 49.0}, {"ts": 1532556615, "Pressure (mmHg)": 49.0}, {"ts": 1532556617, "Pressure (mmHg)": 51.0}, {"ts": 1532556619, "Pressure (mmHg)": 51.0, "HeartRate (bpm)": 68.0, "Respiration (Bpm)": 0.0}, {"ts": 1532556621, "Pressure (mmHg)": 51.5, "HeartRate (bpm)": 68.0, "Respiration (Bpm)": 0.0}, {"ts": 1532556624, "Pressure (mmHg)": 51.0, "HeartRate (bpm)": 68.0, "Respiration (Bpm)": 0.0}, {"ts": 1532556626, "Pressure (mmHg)": 54.0, "HeartRate (bpm)": 69.5, "Respiration (Bpm)": 0.0}, {"ts": 1532556627, "Pressure (mmHg)": 52.5, "HeartRate (bpm)": 71.66666666666667, "Respiration (Bpm)": 0.0}, {"ts": 1532556629, "Pressure (mmHg)": 54.0, "HeartRate (bpm)": 75.5, "Respiration (Bpm)": 0.0}, {"ts": 1532556631, "Pressure (mmHg)": 52.5, "HeartRate (bpm)": 77.0, "Respiration (Bpm)": 0.0}, {"ts": 1532556634, "Pressure (mmHg)": 53.5, "HeartRate (bpm)": 76.0, "Respiration (Bpm)": 0.0}, {"ts": 1532556635, "Pressure (mmHg)": 52.5, "HeartRate (bpm)": 71.0, "Respiration (Bpm)": 0.0}, {"ts": 1532556637, "Pressure (mmHg)": 53.0, "HeartRate (bpm)": 70.33333333333333, "Respiration (Bpm)": 0.0}, {"ts": 1532556640, "Pressure (mmHg)": 55.0, "HeartRate (bpm)": 70.0, "Respiration (Bpm)": 0.0}, {"ts": 1532556641, "Pressure (mmHg)": 54.5, "HeartRate (bpm)": 70.5, "Respiration (Bpm)": 0.0}, {"ts": 1532556643, "Pressure (mmHg)": 55.5, "HeartRate (bpm)": 71.66666666666667, "Respiration (Bpm)": 12.0}, {"ts": 1532556645, "Pressure (mmHg)": 54.0, "HeartRate (bpm)": 73.0, "Respiration (Bpm)": 12.0}, {"ts": 1532556647, "Pressure (mmHg)": 55.5, "HeartRate (bpm)": 73.0, "Respiration (Bpm)": 12.0}, {"ts": 1532556650, "Pressure (mmHg)": 53.5, "HeartRate (bpm)": 71.66666666666667, "Respiration (Bpm)": 12.0}, {"ts": 1532556651, "Pressure (mmHg)": 54.0, "HeartRate (bpm)": 70.0, "Respiration (Bpm)": 12.0}, {"ts": 1532556653, "Pressure (mmHg)": 55.0, "HeartRate (bpm)": 70.0, "Respiration (Bpm)": 12.0}, {"ts": 1532556655, "Pressure (mmHg)": 56.0, "HeartRate (bpm)": 69.0, "Respiration (Bpm)": 12.0}, {"ts": 1532556657, "Pressure (mmHg)": 57.0, "HeartRate (bpm)": 70.0, "Respiration (Bpm)": 12.0}, {"ts": 1532556660, "Pressure (mmHg)": 56.0, "HeartRate (bpm)": 69.66666666666667, "Respiration (Bpm)": 12.0}, {"ts": 1532556661, "Pressure (mmHg)": 54.5, "HeartRate (bpm)": 68.0, "Respiration (Bpm)": 12.0}, {"ts": 1532556663, "Pressure (mmHg)": 56.0, "HeartRate (bpm)": 67.0, "Respiration (Bpm)": 11.0}, {"ts": 1532556665, "Pressure (mmHg)": 55.5, "HeartRate (bpm)": 66.66666666666667, "Respiration (Bpm)": 11.0}, {"ts": 1532556667, "Pressure (mmHg)": 55.0, "HeartRate (bpm)": 67.5, "Respiration (Bpm)": 11.0}, {"ts": 1532556668, "Pressure (mmHg)": 57.0, "HeartRate (bpm)": 70.0, "Respiration (Bpm)": 11.0}, {"ts": 1532556671, "Pressure (mmHg)": 56.666666666666664, "HeartRate (bpm)": 72.0, "Respiration (Bpm)": 11.0}, {"ts": 1532556672, "Pressure (mmHg)": 55.0, "HeartRate (bpm)": 72.0, "Respiration (Bpm)": 11.0}, {"ts": 1532556674, "Pressure (mmHg)": 56.0, "HeartRate (bpm)": 71.33333333333333, "Respiration (Bpm)": 11.0}, {"ts": 1532556677, "Pressure (mmHg)": 55.0, "HeartRate (bpm)": 73.25, "Respiration (Bpm)": 11.0}, {"ts": 1532556680, "Pressure (mmHg)": 53.333333333333336, "HeartRate (bpm)": 75.0, "Respiration (Bpm)": 11.0}, {"ts": 1532556682, "Pressure (mmHg)": 56.5, "HeartRate (bpm)": 75.0, "Respiration (Bpm)": 11.0}, {"ts": 1532556683, "Pressure (mmHg)": 57.0, "HeartRate (bpm)": 73.5, "Respiration (Bpm)": 11.0}, {"ts": 1532556685, "Pressure (mmHg)": 56.0, "HeartRate (bpm)": 72.0, "Respiration (Bpm)": 11.0}, {"ts": 1532556687, "Pressure (mmHg)": 56.0, "HeartRate (bpm)": 72.33333333333333, "Respiration (Bpm)": 10.0}, {"ts": 1532556689, "Pressure (mmHg)": 56.0, "HeartRate (bpm)": 73.0, "Respiration (Bpm)": 8.0}, {"ts": 1532556691, "Pressure (mmHg)": 56.5, "HeartRate (bpm)": 73.0, "Respiration (Bpm)": 8.0}, {"ts": 1532556694, "Pressure (mmHg)": 56.0, "HeartRate (bpm)": 71.5, "Respiration (Bpm)": 8.0}, {"ts": 1532556696, "Pressure (mmHg)": 55.0, "HeartRate (bpm)": 66.66666666666667, "Respiration (Bpm)": 8.0}, {"ts": 1532556699, "Pressure (mmHg)": 57.75, "HeartRate (bpm)": 66.25, "Respiration (Bpm)": 8.0}, {"ts": 1532556702, "Pressure (mmHg)": 56.0, "HeartRate (bpm)": 67.0, "Respiration (Bpm)": 8.0}, {"ts": 1532556704, "Pressure (mmHg)": 57.0, "HeartRate (bpm)": 67.5, "Respiration (Bpm)": 8.0}, {"ts": 1532556706, "Pressure (mmHg)": 58.0}, {"ts": 1532556709, "Pressure (mmHg)": 56.0, "HeartRate (bpm)": 67.0, "Respiration (Bpm)": 8.0}, {"ts": 1532556711, "Pressure (mmHg)": 58.0, "HeartRate (bpm)": 67.0, "Respiration (Bpm)": 8.0}, {"ts": 1532556713, "Pressure (mmHg)": 55.5, "HeartRate (bpm)": 68.0, "Respiration (Bpm)": 8.5}, {"ts": 1532556715, "Pressure (mmHg)": 52.5, "HeartRate (bpm)": 68.5, "Respiration (Bpm)": 9.0}, {"ts": 1532556717, "Pressure (mmHg)": 55.5, "HeartRate (bpm)": 69.0, "Respiration (Bpm)": 9.0}, {"ts": 1532556719, "Pressure (mmHg)": 52.5, "HeartRate (bpm)": 70.0, "Respiration (Bpm)": 10.0}, {"ts": 1532556721, "Pressure (mmHg)": 51.0, "HeartRate (bpm)": 70.0, "Respiration (Bpm)": 10.0}, {"ts": 1532556724, "Pressure (mmHg)": 53.0, "HeartRate (bpm)": 70.0, "Respiration (Bpm)": 10.0}, {"ts": 1532556726, "Pressure (mmHg)": 55.0, "HeartRate (bpm)": 70.0, "Respiration (Bpm)": 10.0}, {"ts": 1532556728, "Pressure (mmHg)": 51.0, "HeartRate (bpm)": 71.0, "Respiration (Bpm)": 10.333333333333334}, {"ts": 1532556729, "Pressure (mmHg)": 50.0, "HeartRate (bpm)": 72.0, "Respiration (Bpm)": 11.0}, {"ts": 1532556731, "Pressure (mmHg)": 49.5, "HeartRate (bpm)": 73.0, "Respiration (Bpm)": 11.0}, {"ts": 1532556733, "Pressure (mmHg)": 51.5, "HeartRate (bpm)": 74.33333333333333, "Respiration (Bpm)": 11.0}, {"ts": 1532556734, "Pressure (mmHg)": 51.0, "HeartRate (bpm)": 75.0, "Respiration (Bpm)": 11.0}, {"ts": 1532556737, "Pressure (mmHg)": 53.0, "HeartRate (bpm)": 76.0, "Respiration (Bpm)": 11.0}, {"ts": 1532556739, "Pressure (mmHg)": 54.5, "HeartRate (bpm)": 74.5, "Respiration (Bpm)": 11.0}, {"ts": 1532556741, "Pressure (mmHg)": 52.666666666666664, "HeartRate (bpm)": 71.33333333333333, "Respiration (Bpm)": 11.0}, {"ts": 1532556743, "Pressure (mmHg)": 52.0, "HeartRate (bpm)": 67.0, "Respiration (Bpm)": 10.0}, {"ts": 1532556746, "Pressure (mmHg)": 54.0, "HeartRate (bpm)": 67.0, "Respiration (Bpm)": 9.0}, {"ts": 1532556747, "Pressure (mmHg)": 54.0, "HeartRate (bpm)": 67.0, "Respiration (Bpm)": 9.0}, {"ts": 1532556748, "Pressure (mmHg)": 56.0, "HeartRate (bpm)": 69.0, "Respiration (Bpm)": 9.0}, {"ts": 1532556751, "Pressure (mmHg)": 37.5, "HeartRate (bpm)": 71.0, "Respiration (Bpm)": 9.0}, {"ts": 1532556752, "Pressure (mmHg)": 49.5}, {"ts": 1532556755, "Pressure (mmHg)": 46.5, "HeartRate (bpm)": 71.0, "Respiration (Bpm)": 9.0}, {"ts": 1532556757, "Pressure (mmHg)": 44.5, "HeartRate (bpm)": 69.5, "Respiration (Bpm)": 9.0}, {"ts": 1532556759, "Pressure (mmHg)": 35.666666666666664}, {"ts": 1532556762, "Pressure (mmHg)": 40.0, "HeartRate (bpm)": 69.0, "Respiration (Bpm)": 9.0}, {"ts": 1532556764, "Pressure (mmHg)": 39.5, "HeartRate (bpm)": 68.33333333333333, "Respiration (Bpm)": 9.0}, {"ts": 1532556766, "Pressure (mmHg)": 41.5}, {"ts": 1532556768, "Pressure (mmHg)": 38.0, "HeartRate (bpm)": 68.0, "Respiration (Bpm)": 9.0}, {"ts": 1532556770, "Pressure (mmHg)": 42.5, "HeartRate (bpm)": 68.66666666666667, "Respiration (Bpm)": 9.0}, {"ts": 1532556772, "Pressure (mmHg)": 44.5, "HeartRate (bpm)": 75.0, "Respiration (Bpm)": 9.0}, {"ts": 1532556774, "Pressure (mmHg)": 41.0, "HeartRate (bpm)": 77.5, "Respiration (Bpm)": 8.0}, {"ts": 1532556776, "Pressure (mmHg)": 39.666666666666664, "HeartRate (bpm)": 74.5, "Respiration (Bpm)": 8.0}, {"ts": 1532556778, "Pressure (mmHg)": 40.0, "HeartRate (bpm)": 67.0, "Respiration (Bpm)": 7.5}, {"ts": 1532556780, "Pressure (mmHg)": 40.0, "HeartRate (bpm)": 66.66666666666667, "Respiration (Bpm)": 7.0}, {"ts": 1532556782, "Pressure (mmHg)": 42.5, "HeartRate (bpm)": 66.5, "Respiration (Bpm)": 7.0}, {"ts": 1532556784, "Pressure (mmHg)": 42.5, "HeartRate (bpm)": 67.0, "Respiration (Bpm)": 7.0}, {"ts": 1532556786, "Pressure (mmHg)": 42.0, "HeartRate (bpm)": 67.0, "Respiration (Bpm)": 7.0}, {"ts": 1532556787, "Pressure (mmHg)": 43.0, "HeartRate (bpm)": 67.0, "Respiration (Bpm)": 7.0}, {"ts": 1532556789, "Pressure (mmHg)": 42.5, "HeartRate (bpm)": 70.0, "Respiration (Bpm)": 7.0}, {"ts": 1532556791, "Pressure (mmHg)": 44.0, "HeartRate (bpm)": 71.0, "Respiration (Bpm)": 7.0}, {"ts": 1532556793, "Pressure (mmHg)": 44.0, "HeartRate (bpm)": 72.66666666666667, "Respiration (Bpm)": 7.0}, {"ts": 1532556795, "Pressure (mmHg)": 46.0, "HeartRate (bpm)": 73.0, "Respiration (Bpm)": 7.0}, {"ts": 1532556797, "Pressure (mmHg)": 46.0, "HeartRate (bpm)": 71.33333333333333, "Respiration (Bpm)": 7.0}, {"ts": 1532556799, "Pressure (mmHg)": 45.333333333333336, "HeartRate (bpm)": 72.0, "Respiration (Bpm)": 7.0}, {"ts": 1532556800, "Pressure (mmHg)": 47.0, "HeartRate (bpm)": 70.0, "Respiration (Bpm)": 7.0}, {"ts": 1532556802, "Pressure (mmHg)": 47.0, "HeartRate (bpm)": 68.0, "Respiration (Bpm)": 7.0}, {"ts": 1532556804, "Pressure (mmHg)": 46.333333333333336, "HeartRate (bpm)": 66.5, "Respiration (Bpm)": 8.0}, {"ts": 1532556806, "Pressure (mmHg)": 45.0, "HeartRate (bpm)": 68.0, "Respiration (Bpm)": 8.0}, {"ts": 1532556808, "Pressure (mmHg)": 47.5, "HeartRate (bpm)": 69.0, "Respiration (Bpm)": 8.0}, {"ts": 1532556810, "Pressure (mmHg)": 45.5, "HeartRate (bpm)": 70.0, "Respiration (Bpm)": 9.0}, {"ts": 1532556812, "Pressure (mmHg)": 45.0, "HeartRate (bpm)": 70.0, "Respiration (Bpm)": 9.0}, {"ts": 1532556814, "Pressure (mmHg)": 44.0, "HeartRate (bpm)": 70.66666666666667, "Respiration (Bpm)": 9.0}, {"ts": 1532556816, "Pressure (mmHg)": 43.0, "HeartRate (bpm)": 70.33333333333333, "Respiration (Bpm)": 9.0}, {"ts": 1532556818, "Pressure (mmHg)": 44.0, "HeartRate (bpm)": 70.0, "Respiration (Bpm)": 9.0}, {"ts": 1532556819, "Pressure (mmHg)": 43.5, "HeartRate (bpm)": 71.5, "Respiration (Bpm)": 9.0}, {"ts": 1532556822, "Pressure (mmHg)": 44.5, "HeartRate (bpm)": 75.33333333333333, "Respiration (Bpm)": 9.0}, {"ts": 1532556823, "Pressure (mmHg)": 44.0, "HeartRate (bpm)": 76.0, "Respiration (Bpm)": 9.0}, {"ts": 1532556825, "Pressure (mmHg)": 44.0, "HeartRate (bpm)": 75.33333333333333, "Respiration (Bpm)": 11.0}, {"ts": 1532556827, "Pressure (mmHg)": 43.5, "HeartRate (bpm)": 72.0, "Respiration (Bpm)": 11.0}, {"ts": 1532556829, "Pressure (mmHg)": 45.0, "HeartRate (bpm)": 72.0, "Respiration (Bpm)": 11.0, "tag": "untagged"}, {"ts": 1532556830, "tag": "untagged"}, {"ts": 1532556831, "tag": "untagged"}, {"ts": 1532556832, "Pressure (mmHg)": 43.666666666666664, "HeartRate (bpm)": 72.0, "Respiration (Bpm)": 11.0, "tag": "untagged"}, {"ts": 1532556833, "Pressure (mmHg)": 42.0, "HeartRate (bpm)": 72.0, "Respiration (Bpm)": 11.0, "tag": "untagged"}, {"ts": 1532556834, "tag": "untagged"}, {"ts": 1532556835, "Pressure (mmHg)": 43.0, "HeartRate (bpm)": 71.5, "Respiration (Bpm)": 11.0, "tag": "untagged"}, {"ts": 1532556836, "tag": "untagged"}, {"ts": 1532556837, "Pressure (mmHg)": 43.0, "HeartRate (bpm)": 67.5, "Respiration (Bpm)": 11.0, "tag": "untagged"}, {"ts": 1532556838, "tag": "untagged"}, {"ts": 1532556839, "Pressure (mmHg)": 42.0, "HeartRate (bpm)": 67.0, "Respiration (Bpm)": 15.0, "tag": "untagged"}, {"ts": 1532556840, "tag": "untagged"}, {"ts": 1532556841, "tag": "black"}, {"ts": 1532556842, "Pressure (mmHg)": 43.0, "HeartRate (bpm)": 67.33333333333333, "Respiration (Bpm)": 15.0, "tag": "black"}, {"ts": 1532556843, "Pressure (mmHg)": 43.0, "HeartRate (bpm)": 68.0, "Respiration (Bpm)": 15.0, "tag": "untagged"}, {"ts": 1532556844, "tag": "untagged"}, {"ts": 1532556845, "Pressure (mmHg)": 43.0, "HeartRate (bpm)": 68.0, "Respiration (Bpm)": 15.0, "tag": "untagged"}, {"ts": 1532556846, "tag": "untagged"}, {"ts": 1532556847, "Pressure (mmHg)": 44.0, "HeartRate (bpm)": 69.0, "Respiration (Bpm)": 15.0, "tag": "untagged"}, {"ts": 1532556848, "Pressure (mmHg)": 42.5, "HeartRate (bpm)": 69.5, "Respiration (Bpm)": 16.0, "tag": "untagged"}, {"ts": 1532556849, "tag": "untagged"}, {"ts": 1532556850, "Pressure (mmHg)": 42.5, "HeartRate (bpm)": 70.5, "Respiration (Bpm)": 17.0, "tag": "untagged"}, {"ts": 1532556851, "tag": "untagged"}, {"ts": 1532556852, "tag": "untagged"}, {"ts": 1532556853, "Pressure (mmHg)": 43.0, "HeartRate (bpm)": 71.0, "Respiration (Bpm)": 17.0, "tag": "untagged"}, {"ts": 1532556854, "tag": "untagged"}, {"ts": 1532556855, "Pressure (mmHg)": 42.5, "HeartRate (bpm)": 71.0, "Respiration (Bpm)": 17.0, "tag": "untagged"}, {"ts": 1532556856, "tag": "untagged"}, {"ts": 1532556857, "Pressure (mmHg)": 42.5, "HeartRate (bpm)": 71.0, "Respiration (Bpm)": 17.0, "tag": "untagged"}, {"ts": 1532556858, "tag": "untagged"}, {"ts": 1532556859, "Pressure (mmHg)": 43.0, "HeartRate (bpm)": 70.66666666666667, "Respiration (Bpm)": 17.0, "tag": "untagged"}, {"ts": 1532556860, "tag": "untagged"}, {"ts": 1532556861, "Pressure (mmHg)": 42.5, "HeartRate (bpm)": 70.0, "Respiration (Bpm)": 17.0, "tag": "white"}, {"ts": 1532556862, "tag": "white"}, {"ts": 1532556863, "Pressure (mmHg)": 44.0, "HeartRate (bpm)": 70.33333333333333, "Respiration (Bpm)": 17.0, "tag": "white"}, {"ts": 1532556864, "tag": "untagged"}, {"ts": 1532556865, "Pressure (mmHg)": 44.0, "HeartRate (bpm)": 69.0, "Respiration (Bpm)": 16.0, "tag": "untagged"}, {"ts": 1532556866, "tag": "untagged"}, {"ts": 1532556867, "Pressure (mmHg)": 43.0, "HeartRate (bpm)": 69.0, "Respiration (Bpm)": 16.0, "tag": "untagged"}, {"ts": 1532556868, "tag": "untagged"}, {"ts": 1532556869, "tag": "untagged"}, {"ts": 1532556870, "Pressure (mmHg)": 46.5, "HeartRate (bpm)": 69.0, "Respiration (Bpm)": 16.0, "tag": "untagged"}, {"ts": 1532556871, "Pressure (mmHg)": 44.5, "HeartRate (bpm)": 69.0, "Respiration (Bpm)": 16.0, "tag": "untagged"}, {"ts": 1532556872, "tag": "untagged"}, {"ts": 1532556873, "Pressure (mmHg)": 41.0, "HeartRate (bpm)": 71.66666666666667, "Respiration (Bpm)": 16.0, "tag": "untagged"}, {"ts": 1532556874, "tag": "untagged"}, {"ts": 1532556875, "Pressure (mmHg)": 42.5, "HeartRate (bpm)": 75.0, "Respiration (Bpm)": 16.0, "tag": "untagged"}, {"ts": 1532556876, "Pressure (mmHg)": 45.0, "HeartRate (bpm)": 78.0, "Respiration (Bpm)": 16.0, "tag": "untagged"}, {"ts": 1532556877, "tag": "untagged"}, {"ts": 1532556878, "tag": "untagged"}, {"ts": 1532556879, "Pressure (mmHg)": 44.5, "HeartRate (bpm)": 78.0, "Respiration (Bpm)": 16.0, "tag": "untagged"}, {"ts": 1532556880, "Pressure (mmHg)": 45.0, "HeartRate (bpm)": 76.33333333333333, "Respiration (Bpm)": 16.0, "tag": "untagged"}, {"ts": 1532556881, "tag": "untagged"}, {"ts": 1532556882, "Pressure (mmHg)": 46.0, "HeartRate (bpm)": 76.0, "Respiration (Bpm)": 16.0, "tag": "hispanic"}, {"ts": 1532556883, "tag": "hispanic"}, {"ts": 1532556884, "Pressure (mmHg)": 45.333333333333336, "HeartRate (bpm)": 74.5, "Respiration (Bpm)": 16.0, "tag": "hispanic"}, {"ts": 1532556885, "tag": "untagged"}, {"ts": 1532556886, "tag": "untagged"}, {"ts": 1532556887, "Pressure (mmHg)": 43.5, "HeartRate (bpm)": 72.33333333333333, "Respiration (Bpm)": 16.0, "tag": "hispanic"}, {"ts": 1532556888, "Pressure (mmHg)": 44.0, "HeartRate (bpm)": 71.0, "Respiration (Bpm)": 16.0, "tag": "untagged"}, {"ts": 1532556889, "tag": "untagged"}, {"ts": 1532556890, "Pressure (mmHg)": 42.5, "HeartRate (bpm)": 70.0, "Respiration (Bpm)": 16.0, "tag": "untagged"}, {"ts": 1532556891, "tag": "untagged"}, {"ts": 1532556892, "tag": "untagged"}, {"ts": 1532556893, "Pressure (mmHg)": 42.0, "HeartRate (bpm)": 70.5, "Respiration (Bpm)": 16.0, "tag": "untagged"}, {"ts": 1532556894, "Pressure (mmHg)": 41.0, "HeartRate (bpm)": 70.33333333333333, "Respiration (Bpm)": 14.0, "tag": "untagged"}, {"ts": 1532556895, "tag": "untagged"}, {"ts": 1532556896, "tag": "untagged"}, {"ts": 1532556897, "Pressure (mmHg)": 40.333333333333336, "HeartRate (bpm)": 69.4, "Respiration (Bpm)": 13.0, "tag": "untagged"}, {"ts": 1532556898, "tag": "untagged"}, {"ts": 1532556899, "tag": "untagged"}, {"ts": 1532556900, "Pressure (mmHg)": 46.0, "HeartRate (bpm)": 70.33333333333333, "Respiration (Bpm)": 13.0, "tag": "untagged"}, {"ts": 1532556901, "tag": "untagged"}, {"ts": 1532556902, "Pressure (mmHg)": 46.0, "HeartRate (bpm)": 72.0, "Respiration (Bpm)": 13.0, "tag": "asian"}, {"ts": 1532556903, "tag": "asian"}, {"ts": 1532556904, "Pressure (mmHg)": 47.0, "HeartRate (bpm)": 72.0, "Respiration (Bpm)": 13.0, "tag": "asian"}, {"ts": 1532556905, "tag": "asian"}, {"ts": 1532556906, "Pressure (mmHg)": 46.5, "HeartRate (bpm)": 71.33333333333333, "Respiration (Bpm)": 13.0, "tag": "untagged"}, {"ts": 1532556907, "tag": "untagged"}, {"ts": 1532556908, "tag": "untagged"}, {"ts": 1532556909, "Pressure (mmHg)": 45.666666666666664, "HeartRate (bpm)": 68.0, "Respiration (Bpm)": 13.0, "tag": "untagged"}, {"ts": 1532556910, "tag": "untagged"}, {"ts": 1532556911, "tag": "untagged"}, {"ts": 1532556912, "Pressure (mmHg)": 44.0, "HeartRate (bpm)": 68.0, "Respiration (Bpm)": 13.0, "tag": "untagged"}, {"ts": 1532556913, "Pressure (mmHg)": 45.0, "HeartRate (bpm)": 69.0, "Respiration (Bpm)": 13.666666666666666, "tag": "untagged"}, {"ts": 1532556914, "tag": "untagged"}, {"ts": 1532556915, "Pressure (mmHg)": 44.5, "HeartRate (bpm)": 71.0, "Respiration (Bpm)": 15.0, "tag": "untagged"}, {"ts": 1532556916, "tag": "untagged"}, {"ts": 1532556917, "Pressure (mmHg)": 43.0, "HeartRate (bpm)": 73.66666666666667, "Respiration (Bpm)": 15.0, "tag": "untagged"}, {"ts": 1532556918, "tag": "untagged"}, {"ts": 1532556919, "tag": "untagged"}, {"ts": 1532556920, "Pressure (mmHg)": 44.0, "HeartRate (bpm)": 75.0, "Respiration (Bpm)": 16.6, "tag": "untagged"}, {"ts": 1532556921, "tag": "untagged"}, {"ts": 1532556922, "tag": "untagged"}, {"ts": 1532556923, "Pressure (mmHg)": 44.5, "HeartRate (bpm)": 75.0, "Respiration (Bpm)": 17.0, "tag": "untagged"}, {"ts": 1532556924, "Pressure (mmHg)": 44.5, "HeartRate (bpm)": 75.66666666666667, "Respiration (Bpm)": 17.0, "tag": "white"}, {"ts": 1532556925, "tag": "white"}, {"ts": 1532556926, "Pressure (mmHg)": 46.0, "HeartRate (bpm)": 78.0, "Respiration (Bpm)": 17.0, "tag": "white"}, {"ts": 1532556927, "tag": "untagged"}, {"ts": 1532556928, "Pressure (mmHg)": 43.5, "HeartRate (bpm)": 75.66666666666667, "Respiration (Bpm)": 17.0, "tag": "white"}, {"ts": 1532556929, "tag": "white"}, {"ts": 1532556930, "Pressure (mmHg)": 42.0, "HeartRate (bpm)": 75.0, "Respiration (Bpm)": 17.0, "tag": "white"}, {"ts": 1532556931, "tag": "untagged"}, {"ts": 1532556932, "Pressure (mmHg)": 43.0, "HeartRate (bpm)": 72.5, "Respiration (Bpm)": 17.0, "tag": "untagged"}, {"ts": 1532556933, "tag": "untagged"}, {"ts": 1532556934, "Pressure (mmHg)": 41.5, "HeartRate (bpm)": 70.33333333333333, "Respiration (Bpm)": 15.0, "tag": "untagged"}, {"ts": 1532556935, "tag": "untagged"}, {"ts": 1532556936, "Pressure (mmHg)": 40.5, "HeartRate (bpm)": 69.0, "Respiration (Bpm)": 11.0, "tag": "untagged"}, {"ts": 1532556937, "tag": "untagged"}, {"ts": 1532556938, "Pressure (mmHg)": 42.5, "HeartRate (bpm)": 69.0, "Respiration (Bpm)": 11.0, "tag": "untagged"}, {"ts": 1532556939, "Pressure (mmHg)": 46.0, "HeartRate (bpm)": 69.5, "Respiration (Bpm)": 11.0, "tag": "untagged"}, {"ts": 1532556940, "tag": "untagged"}, {"ts": 1532556941, "Pressure (mmHg)": 48.0, "HeartRate (bpm)": 71.0, "Respiration (Bpm)": 11.0, "tag": "untagged"}, {"ts": 1532556942, "tag": "untagged"}, {"ts": 1532556943, "Pressure (mmHg)": 47.5, "HeartRate (bpm)": 72.66666666666667, "Respiration (Bpm)": 11.0, "tag": "untagged"}, {"ts": 1532556944, "tag": "untagged"}, {"ts": 1532556945, "Pressure (mmHg)": 49.0, "HeartRate (bpm)": 72.33333333333333, "Respiration (Bpm)": 10.0, "tag": "untagged"}, {"ts": 1532556946, "tag": "untagged"}, {"ts": 1532556947, "Pressure (mmHg)": 48.5, "HeartRate (bpm)": 70.0, "Respiration (Bpm)": 10.0, "tag": "hispanic"}, {"ts": 1532556948, "tag": "hispanic"}, {"ts": 1532556949, "Pressure (mmHg)": 43.5, "HeartRate (bpm)": 67.66666666666667, "Respiration (Bpm)": 10.0, "tag": "hispanic"}, {"ts": 1532556950, "tag": "untagged"}, {"ts": 1532556951, "tag": "untagged"}, {"ts": 1532556952, "Pressure (mmHg)": 43.5, "HeartRate (bpm)": 67.0, "Respiration (Bpm)": 10.0, "tag": "untagged"}, {"ts": 1532556953, "tag": "untagged"}, {"ts": 1532556954, "Pressure (mmHg)": 43.0, "HeartRate (bpm)": 67.33333333333333, "Respiration (Bpm)": 10.0, "tag": "untagged"}, {"ts": 1532556955, "tag": "untagged"}, {"ts": 1532556956, "Pressure (mmHg)": 42.0, "HeartRate (bpm)": 68.0, "Respiration (Bpm)": 9.0, "tag": "untagged"}, {"ts": 1532556957, "tag": "untagged"}, {"ts": 1532556958, "Pressure (mmHg)": 41.0, "HeartRate (bpm)": 68.5, "Respiration (Bpm)": 9.0, "tag": "untagged"}, {"ts": 1532556959, "tag": "untagged"}, {"ts": 1532556960, "Pressure (mmHg)": 44.0, "HeartRate (bpm)": 68.5, "Respiration (Bpm)": 9.0, "tag": "untagged"}, {"ts": 1532556961, "tag": "untagged"}, {"ts": 1532556962, "Pressure (mmHg)": 45.5, "HeartRate (bpm)": 69.0, "Respiration (Bpm)": 9.0, "tag": "untagged"}, {"ts": 1532556963, "tag": "untagged"}, {"ts": 1532556964, "Pressure (mmHg)": 47.0, "HeartRate (bpm)": 68.66666666666667, "Respiration (Bpm)": 9.0, "tag": "untagged"}, {"ts": 1532556965, "tag": "untagged"}, {"ts": 1532556966, "Pressure (mmHg)": 46.5, "HeartRate (bpm)": 68.5, "Respiration (Bpm)": 9.0, "tag": "untagged"}, {"ts": 1532556967, "Pressure (mmHg)": 46.0, "HeartRate (bpm)": 68.0, "Respiration (Bpm)": 9.0, "tag": "asian"}, {"ts": 1532556968, "tag": "asian"}, {"ts": 1532556969, "tag": "untagged"}, {"ts": 1532556970, "Pressure (mmHg)": 44.333333333333336, "HeartRate (bpm)": 67.0, "Respiration (Bpm)": 16.0, "tag": "untagged"}, {"ts": 1532556971, "tag": "untagged"}, {"ts": 1532556972, "Pressure (mmHg)": 43.5, "HeartRate (bpm)": 67.0, "Respiration (Bpm)": 16.0, "tag": "untagged"}, {"ts": 1532556973, "Pressure (mmHg)": 43.0, "HeartRate (bpm)": 67.5, "Respiration (Bpm)": 16.5, "tag": "untagged"}, {"ts": 1532556974, "tag": "untagged"}, {"ts": 1532556975, "tag": "untagged"}, {"ts": 1532556976, "Pressure (mmHg)": 42.666666666666664, "HeartRate (bpm)": 70.0, "Respiration (Bpm)": 17.0, "tag": "untagged"}, {"ts": 1532556977, "tag": "untagged"}, {"ts": 1532556978, "Pressure (mmHg)": 43.0, "HeartRate (bpm)": 70.0, "Respiration (Bpm)": 17.0, "tag": "untagged"}, {"ts": 1532556979, "tag": "untagged"}, {"ts": 1532556980, "Pressure (mmHg)": 42.0, "HeartRate (bpm)": 69.66666666666667, "Respiration (Bpm)": 17.0, "tag": "untagged"}, {"ts": 1532556981, "tag": "untagged"}, {"ts": 1532556982, "Pressure (mmHg)": 42.0, "HeartRate (bpm)": 69.0, "Respiration (Bpm)": 17.0, "tag": "untagged"}, {"ts": 1532556983, "Pressure (mmHg)": 45.5, "HeartRate (bpm)": 69.0, "Respiration (Bpm)": 17.0, "tag": "untagged"}, {"ts": 1532556984, "tag": "untagged"}, {"ts": 1532556985, "Pressure (mmHg)": 45.0, "HeartRate (bpm)": 69.33333333333333, "Respiration (Bpm)": 17.0, "tag": "untagged"}, {"ts": 1532556986, "tag": "untagged"}, {"ts": 1532556987, "tag": "black"}, {"ts": 1532556988, "Pressure (mmHg)": 44.0, "HeartRate (bpm)": 70.0, "Respiration (Bpm)": 17.0, "tag": "black"}, {"ts": 1532556989, "Pressure (mmHg)": 46.0, "HeartRate (bpm)": 69.5, "Respiration (Bpm)": 17.0, "tag": "black"}, {"ts": 1532556990, "tag": "untagged"}, {"ts": 1532556991, "Pressure (mmHg)": 44.5, "HeartRate (bpm)": 68.0, "Respiration (Bpm)": 17.0, "tag": "untagged"}, {"ts": 1532556992, "tag": "black"}, {"ts": 1532556993, "tag": "untagged"}, {"ts": 1532556994, "Pressure (mmHg)": 42.0, "HeartRate (bpm)": 67.66666666666667, "Respiration (Bpm)": 17.0, "tag": "untagged"}, {"ts": 1532556995, "tag": "untagged"}, {"ts": 1532556996, "tag": "untagged"}, {"ts": 1532556997, "Pressure (mmHg)": 43.0, "HeartRate (bpm)": 67.66666666666667, "Respiration (Bpm)": 17.0, "tag": "untagged"}, {"ts": 1532556999, "Pressure (mmHg)": 41.5, "HeartRate (bpm)": 68.0, "Respiration (Bpm)": 17.0}, {"ts": 1532557001, "Pressure (mmHg)": 42.0, "HeartRate (bpm)": 67.5, "Respiration (Bpm)": 17.0}, {"ts": 1532557003, "Pressure (mmHg)": 43.5, "HeartRate (bpm)": 66.0, "Respiration (Bpm)": 17.0}, {"ts": 1532557004, "Pressure (mmHg)": 47.0, "HeartRate (bpm)": 65.0, "Respiration (Bpm)": 18.0}, {"ts": 1532557007, "Pressure (mmHg)": 44.333333333333336, "HeartRate (bpm)": 65.0, "Respiration (Bpm)": 18.0}, {"ts": 1532557009, "Pressure (mmHg)": 40.5, "HeartRate (bpm)": 67.66666666666667, "Respiration (Bpm)": 18.0}, {"ts": 1532557010, "Pressure (mmHg)": 40.0, "HeartRate (bpm)": 71.5, "Respiration (Bpm)": 18.0}, {"ts": 1532557013, "Pressure (mmHg)": 42.5, "HeartRate (bpm)": 72.0, "Respiration (Bpm)": 18.0}, {"ts": 1532557015, "Pressure (mmHg)": 44.0, "HeartRate (bpm)": 71.5, "Respiration (Bpm)": 17.0}, {"ts": 1532557016, "Pressure (mmHg)": 42.5, "HeartRate (bpm)": 71.0, "Respiration (Bpm)": 17.0}, {"ts": 1532557019, "Pressure (mmHg)": 41.5, "HeartRate (bpm)": 71.0, "Respiration (Bpm)": 17.0}, {"ts": 1532557020, "Pressure (mmHg)": 42.0, "HeartRate (bpm)": 74.0, "Respiration (Bpm)": 15.0}]'; \ No newline at end of file diff --git a/Scripts/hack_18_data_cleaner.py b/Scripts/hack_18_data_cleaner.py index 52f651e..b625116 100644 --- a/Scripts/hack_18_data_cleaner.py +++ b/Scripts/hack_18_data_cleaner.py @@ -82,7 +82,7 @@ def merge_rows(*iterable): vitals_rows = average_rows(vitals_reader, ["HeartRate (bpm)", "Respiration (Bpm)"]) gaze_data = collapse_gaze_data(gaze_f.read().split("\n")) - jString = json.dumps(merge_rows(bp_rows, vitals_rows, gaze_data), indent="\t") - # result_f.write("export const mergedData : string = '") + jString = json.dumps(merge_rows(bp_rows, vitals_rows, gaze_data)) + result_f.write("export const mergedData : string = '") result_f.write(jString) - # result_f.write("';") \ No newline at end of file + result_f.write("';") \ No newline at end of file