Changeset 11576 for branches/OptimizationNetworks/HeuristicLab.Problems.Instances.DataAnalysis/3.3/TableFileParser.cs
- Timestamp:
- 11/25/14 03:26:00 (10 years ago)
- Location:
- branches/OptimizationNetworks
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OptimizationNetworks
- Property svn:mergeinfo changed
-
branches/OptimizationNetworks/HeuristicLab.Problems.Instances.DataAnalysis
- Property svn:mergeinfo changed
-
branches/OptimizationNetworks/HeuristicLab.Problems.Instances.DataAnalysis/3.3/TableFileParser.cs
r9652 r11576 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 3Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 169 169 //create columns 170 170 for (int col = 0; col < columns; col++) { 171 var types = rowValues.Select(r => r[col]).Where(v => v != null && v as string != string.Empty).Take(10 ).Select(v => v.GetType());171 var types = rowValues.Select(r => r[col]).Where(v => v != null && v as string != string.Empty).Take(100).Select(v => v.GetType()); 172 172 if (!types.Any()) { 173 173 values.Add(new List<string>()); … … 193 193 values[columnIndex].Add(DateTime.MinValue); 194 194 else if (values[columnIndex] is List<string> && !(element is string)) 195 values[columnIndex].Add( string.Empty);195 values[columnIndex].Add(element.ToString()); 196 196 else 197 197 values[columnIndex].Add(element);
Note: See TracChangeset
for help on using the changeset viewer.