Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/17/21 16:25:19 (3 years ago)
Author:
dpiringe
Message:

#3026

  • fixed a wrong description for the invert parameter in RunCollectionValueRemover
  • fixed the usage of a wrong formatter in RunCollectionSRSolutionGraphVizFormatter
  • fixed a bug in ListJsonItem where an empty guid field can cause an exception
  • started to rework the RegressionProblemDataConverter -> it causes a bug with the symbol Variable of the TypeCorherentGrammar (maybe more grammars)
    • the reasons for the rework: this converter was already the source of some problems in the past; it uses a lot of reflection and dynamic objects -> it is very complicated to read/understand
  • added an official description property Description in the metadata part of a template + entry in Constants.cs
File:
1 edited

Legend:

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

    r18045 r18056  
    2828    #endregion
    2929
    30     public override int Priority => 20;
    31 
    32     public override bool CanConvertType(Type t) =>
    33       HEAL.Attic.Mapper.StaticCache.GetType(new Guid("EE612297-B1AF-42D2-BF21-AF9A2D42791C")).IsAssignableFrom(t);
     30    public override int Priority => 20;//20;
     31
     32    public override bool CanConvertType(Type t) => t == typeof(ValueParameter<IRegressionProblemData>);
     33      //HEAL.Attic.Mapper.StaticCache.GetType(new Guid("EE612297-B1AF-42D2-BF21-AF9A2D42791C")).IsAssignableFrom(t); // IRegressionProblemData
    3434
    3535    public override void Inject(IItem item, IJsonItem data, IJsonItemConverter root) {
     36
     37      var tmp = item as IRegressionProblemData; //ModifiableDataset
     38      //tmp.InputVariables
     39     
    3640
    3741      dynamic regressionProblemData = (dynamic)item;
     
    141145    private void SetAllowedInputVariables(dynamic regressionProblemData, StringArrayJsonItem item, IMatrixJsonItem matrix) {
    142146      if (item != null && regressionProblemData is IParameterizedItem p) {
     147       
    143148        var regProbDataType = ((ParameterizedNamedItem)regressionProblemData).GetType(); //RegressionProblemData
    144149
Note: See TracChangeset for help on using the changeset viewer.