From 3a4f46a62e0638c161addc31569e2c08f778f853 Mon Sep 17 00:00:00 2001 From: Chris Midkiff Date: Fri, 15 May 2020 23:56:37 -0400 Subject: [PATCH] updated data variables --- Assets/Scripts/DataSet.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/DataSet.cs b/Assets/Scripts/DataSet.cs index d567a5c..1d70d11 100644 --- a/Assets/Scripts/DataSet.cs +++ b/Assets/Scripts/DataSet.cs @@ -17,14 +17,14 @@ namespace Assets.Scripts { UploadToElastic(); StringBuilder stringBuilder = new StringBuilder(); - stringBuilder.AppendLine("Platform,ParticipantID,Angle,Distance,Time,Direction,DotName,TrialIndex,DotIndex,Timestamp"); + stringBuilder.AppendLine("Platform,ParticipantID,Angle,Distance,Time,Direction,DotName,TrialIndex,DotIndex,Timestamp,DotSize"); Sample first = Samples[0]; string platform = first.Platform; string trial = (first.TrialIndex + 1).ToString(); string participant = first.ParticipantID.ToString(); foreach (Sample sample in Samples) { - stringBuilder.AppendLine(string.Format("{0},{1},{2},{3},{4},{5},{6},{7},{8},{9}", sample.Platform, sample.ParticipantID, sample.Angle, sample.Distance, sample.Time, sample.Direction, sample.DotName, sample.TrialIndex, sample.DotIndex, sample.Timestamp)); + stringBuilder.AppendLine(string.Format("{0},{1},{2},{3},{4},{5},{6},{7},{8},{9},{10}", sample.Platform, sample.ParticipantID, sample.Angle, sample.Distance, sample.Time, sample.Direction, sample.DotName, sample.TrialIndex, sample.DotIndex, sample.Timestamp,sample.DotSize)); } string path = Path.Combine(Application.persistentDataPath, string.Format("{0}-{1}-{2}.csv",platform,participant,trial)); using (StreamWriter streamWriter = File.CreateText(path))