- Timestamp:
- 06/04/14 13:09:51 (10 years ago)
- Location:
- branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.4/Implementations
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.4/Implementations/FilterLogic.cs
r10930 r10939 74 74 75 75 public void Apply(IList<IFilter> filters, bool isAndCombination) { 76 preprocessingData.SetFilter(Preview(filters, isAndCombination));77 76 preprocessingData.PersistFilter(); 77 Reset(); 78 78 } 79 79 -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.4/Implementations/FilteredPreprocessingData.cs
r10900 r10939 110 110 111 111 public void SetFilter(bool[] rowFilters) { 112 113 112 filteredData = (ITransactionalPreprocessingData)originalData.Clone(); 114 115 for (int row = (rowFilters.Length - 1); row >= 0; --row) { 116 if (rowFilters[row]) { 117 filteredData.DeleteRow(row); 113 filteredData.InTransaction(() => { 114 for (int row = (rowFilters.Length - 1); row >= 0; --row) { 115 if (rowFilters[row]) { 116 filteredData.DeleteRow(row); 117 } 118 118 } 119 } 120 119 }); 121 120 OnFilterChanged(); 122 121 }
Note: See TracChangeset
for help on using the changeset viewer.