Ignore:
Timestamp:
07/09/14 10:37:01 (8 years ago)
Author:
gkronber
Message:

#2206: made several changes / improvements to the data-preprocessing code while reviewing the code

Location:
trunk/sources/HeuristicLab.DataPreprocessing.Views/3.4
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.DataPreprocessing.Views/3.4/ComparisonFilterView.cs

    r10998 r11156  
    158158    private IStringConvertibleValue CreateStringConvertibleValue(int columnIndex) {
    159159      IStringConvertibleValue value;
    160       if (Content.ConstrainedValue.IsType<double>(columnIndex)) {
     160      if (Content.ConstrainedValue.VariableHasType<double>(columnIndex)) {
    161161        value = new DoubleValue();
    162       } else if (Content.ConstrainedValue.IsType<String>(columnIndex)) {
     162      } else if (Content.ConstrainedValue.VariableHasType<String>(columnIndex)) {
    163163        value = new StringValue();
    164       } else if (Content.ConstrainedValue.IsType<DateTime>(columnIndex)) {
     164      } else if (Content.ConstrainedValue.VariableHasType<DateTime>(columnIndex)) {
    165165        value = new DateTimeValue();
    166166      } else {
  • trunk/sources/HeuristicLab.DataPreprocessing.Views/3.4/DataGridContentView.cs

    r11098 r11156  
    358358      IPreprocessingData preprocessingData = Content.FilterLogic.PreprocessingData;
    359359      IStringConvertibleValue value;
    360       if (preprocessingData.IsType<double>(columnIndex)) {
     360      if (preprocessingData.VariableHasType<double>(columnIndex)) {
    361361        value = new DoubleValue();
    362       } else if (preprocessingData.IsType<String>(columnIndex)) {
     362      } else if (preprocessingData.VariableHasType<String>(columnIndex)) {
    363363        value = new StringValue();
    364       } else if (preprocessingData.IsType<DateTime>(columnIndex)) {
     364      } else if (preprocessingData.VariableHasType<DateTime>(columnIndex)) {
    365365        value = new DateTimeValue();
    366366      } else {
  • trunk/sources/HeuristicLab.DataPreprocessing.Views/3.4/StatisticsView.cs

    r10971 r11156  
    124124      List<string> list;
    125125      var logic = Content.StatisticsLogic;
    126       if (logic.IsType<double>(i)) {
     126      if (logic.VariableHasType<double>(i)) {
    127127        list = GetDoubleColumns(i);
    128       } else if (logic.IsType<string>(i)) {
     128      } else if (logic.VariableHasType<string>(i)) {
    129129        list = GetStringColumns(i);
    130       } else if (logic.IsType<DateTime>(i)) {
     130      } else if (logic.VariableHasType<DateTime>(i)) {
    131131        list = GetDateTimeColumns(i);
    132132      } else {
Note: See TracChangeset for help on using the changeset viewer.