- Timestamp:
- 06/05/12 16:39:54 (12 years ago)
- Location:
- branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command
- Files:
-
- 5 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command
- Property svn:ignore
-
old new 1 1 bin 2 2 obj 3 *.user
-
- Property svn:ignore
-
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/HeuristicLab.DataImporter.Command.csproj
r7632 r7968 151 151 <Compile Include="ChangeDataset\MoveColumnGroupRightCommand.cs" /> 152 152 <Compile Include="ChangeDataset\MoveColumnGroupLeftCommand.cs" /> 153 <Compile Include="MissingValues\DeleteColumnsWithMissingValuesThresholdCommand.cs" /> 154 <Compile Include="MissingValues\DeleteRowsWithMissingValuesThresholdCommand.cs" /> 155 <Compile Include="MissingValues\IThresholdCommand.cs" /> 153 156 <Compile Include="TimeSeries\ChangeDateTimeColumnToDoubleColumn.cs" /> 154 157 <Compile Include="TimeSeries\EquidistantTimeSeriesCommandBase.cs" /> … … 190 193 <DependentUpon>BoxCoxTransformationCommandView.cs</DependentUpon> 191 194 </Compile> 195 <Compile Include="View\DeleteWithThreshold.cs"> 196 <SubType>UserControl</SubType> 197 </Compile> 198 <Compile Include="View\DeleteWithThreshold.Designer.cs"> 199 <DependentUpon>DeleteWithThreshold.cs</DependentUpon> 200 </Compile> 192 201 <Compile Include="View\FilterSavitzkyGolayCommandView.cs"> 193 202 <SubType>UserControl</SubType> -
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/MissingValues/DeleteRowsWithMissingValuesCommand.cs
r7267 r7968 20 20 #endregion 21 21 22 using System;23 22 using System.Collections.Generic; 24 23 using System.Linq; 25 using System.Text;26 24 using HeuristicLab.DataImporter.Data; 27 25 using HeuristicLab.DataImporter.Data.CommandBase; … … 50 48 base.Execute(); 51 49 ColumnGroup tempColumnGroup = new ColumnGroup(); 52 Dictionary<int, object> positions = new Dictionary<int, object>();50 HashSet<int> positions = new HashSet<int>(); 53 51 ColumnBase column; 54 52 … … 56 54 column = ColumnGroup.GetColumn(AffectedColumns[col]); 57 55 for (int row = 0; row < ColumnGroup.RowCount; row++) { 58 if (column.GetValue(row) == null && !positions.Contains Key(row))59 positions [row] = null;56 if (column.GetValue(row) == null && !positions.Contains(row)) 57 positions.Add(row); 60 58 } 61 59 } … … 67 65 68 66 for (int i = 0; i < ColumnGroup.RowCount; i++) 69 if (!positions.Contains Key(i))67 if (!positions.Contains(i)) 70 68 tempColumnGroup.AddRow(ColumnGroup.GetRow(i)); 71 69
Note: See TracChangeset
for help on using the changeset viewer.