Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/02/14 12:37:26 (10 years ago)
Author:
mleitner
Message:

Add transaction to apply filter and inverse delete order

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/FilterLogic.cs

    r10696 r10699  
    5959        bool[] results = Preview(filters);
    6060
    61         for(int row = 0; row < results.Length; ++row)
     61        preprocessingData.InTransaction(() =>
    6262        {
    63             if(!results[row]){
    64                 preprocessingData.DeleteRow(row);
     63          for (int row = (results.Length - 1); row >= 0; --row)
     64          {
     65            if (!results[row])
     66            {
     67              preprocessingData.DeleteRow(row);
    6568            }
    66         }
     69          }
     70        });
    6771     }
    6872
Note: See TracChangeset for help on using the changeset viewer.