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))