Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/23/20 15:16:55 (4 years ago)
Author:
dpiringe
Message:

#3026:

  • fixed a bug with JsonItemMultiValueControl -> the size of the matrix should now be saved correctly
  • fixed a bug with RegressionProblemDataConverter -> should now set the row/col sizes correctly
  • simplified the code for saving matrix data in JsonItemMultiValueControl, MatrixValueVM and ArrayValueVM
  • removed unnecessary casts
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/RegressionProblemDataConverter.cs

    r17473 r17484  
    2929      dynamic val = (dynamic)item;
    3030      object dataset = (object)val.Dataset;
     31      var rows = dataset.GetType().GetField("rows", flags);
     32      rows.SetValue(dataset, matrix.Value[0].Length);
     33
     34      var variableNames = dataset.GetType().GetField("variableNames", flags);
     35      variableNames.SetValue(dataset, matrix.RowNames);
     36
    3137      var dataInfo = dataset.GetType().GetField("variableValues", flags);
    3238      dataInfo.SetValue(dataset, dictTmp);
Note: See TracChangeset for help on using the changeset viewer.