Free cookie consent management tool by TermsFeed Policy Generator

Changeset 11038


Ignore:
Timestamp:
06/25/14 11:03:10 (10 years ago)
Author:
rstoll
Message:
  • fix for datasets containg DateTime - could not load PreProcessing
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis/3.4/Dataset.cs

    r11002 r11038  
    187187      if (!variableValues.TryGetValue(variableName, out list))
    188188        throw new ArgumentException("The variable " + variableName + " does not exist in the dataset.");
    189       List<string> values = list as List<string>;
     189      List<DateTime> values = list as List<DateTime>;
    190190      if (values == null) throw new ArgumentException("The variable " + variableName + " is not a datetime variable.");
    191191
    192192      //mkommend yield return used to enable lazy evaluation
    193       foreach (string value in values)
    194         yield return DateTime.Parse(value);
     193      foreach (DateTime value in values)
     194        yield return value;
    195195    }
    196196
Note: See TracChangeset for help on using the changeset viewer.