Free cookie consent management tool by TermsFeed Policy Generator

Changeset 12058


Ignore:
Timestamp:
02/23/15 16:47:26 (10 years ago)
Author:
ehopf
Message:

#2335: Changed the logic of the ProblemDataCreator to avoid the access of a column that was deleted by the user before. Fixes Defect 1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessingImprovements/HeuristicLab.DataPreprocessing/3.4/ProblemDataCreator.cs

    r12012 r12058  
    6161      SetTrainingAndTestPartition(problemData);
    6262      // set the input variables to the correct checked state
    63       var inputVariables = problemData.InputVariables.ToDictionary(x => x.Value, x => x);
    64       foreach (var variable in oldProblemData.InputVariables) {
    65         bool @checked = oldProblemData.InputVariables.ItemChecked(variable);
    66         problemData.InputVariables.SetItemCheckedState(inputVariables[variable.Value], @checked);
     63      var inputVariables = oldProblemData.InputVariables.ToDictionary(x => x.Value, x => x);
     64      foreach (var variable in problemData.InputVariables) {
     65        bool isChecked = oldProblemData.InputVariables.ItemChecked(inputVariables[variable.Value]);
     66        problemData.InputVariables.SetItemCheckedState(variable, isChecked);
    6767      }
    6868
Note: See TracChangeset for help on using the changeset viewer.