- Timestamp:
- 01/08/14 15:36:52 (11 years ago)
- Location:
- branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/PreprocessingData.cs
r10243 r10311 111 111 } 112 112 113 public void SetValues<T>(string variableName, IEnumerable<T> values) { 114 variableValues[variableName] = values.ToList(); 113 public void SetValues<T>(string variableName, IList<T> values) { 114 if(IsType<T>(variableName)){ 115 variableValues[variableName] = (IList) values; 116 }else{ 117 throw new ArgumentException("The datatype of column " + variableName + " must be of type " + variableValues[variableName].GetType().Name + " but was " + typeof(T).Name); 118 } 115 119 } 116 120 -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/PreprocessingDataManipulation.cs
r10308 r10311 124 124 125 125 for (int i = 0; i < indices.Count(); ++i) { 126 new Tuple<int, int>(i, indices.ElementAt(i));126 indicesTuple.Add(new Tuple<int, int>(i, indices.ElementAt(i))); 127 127 } 128 128
Note: See TracChangeset
for help on using the changeset viewer.