Changeset 10311
- Timestamp:
- 01/08/14 15:36:52 (11 years ago)
- Location:
- branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/HeuristicLab.DataPreprocessing-3.3.csproj
r10310 r10311 219 219 </ProjectReference> 220 220 </ItemGroup> 221 <ItemGroup>222 <EmbeddedResource Include="Views\DataPreprocessingView.resx">223 <DependentUpon>DataPreprocessingView.cs</DependentUpon>224 </EmbeddedResource>225 </ItemGroup>226 221 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 227 222 <PropertyGroup> -
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 -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Interfaces/IPreprocessingData.cs
r10243 r10311 33 33 34 34 IList<T> GetValues<T>(string variableName); 35 void SetValues<T>(string variableName, I Enumerable<T> values);35 void SetValues<T>(string variableName, IList<T> values); 36 36 37 37 void InsertRow(int rowIndex); -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Views/DataGridContentView.cs
r10257 r10311 9 9 namespace HeuristicLab.DataPreprocessing { 10 10 [View("Data Grid Content View")] 11 [Content(typeof(IDataGridContent), false)]11 [Content(typeof(IDataGridContent), true)] 12 12 public partial class DataGridContentView : StringConvertibleMatrixView { 13 13
Note: See TracChangeset
for help on using the changeset viewer.