Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/12/20 17:06:04 (5 years ago)
Author:
dpiringe
Message:

#3026:

  • added new converter: BatchRunConverter, ExperimentConverter
  • fixed a bug with the path of the .hl file in JCGenerator
  • fixed a bug with a redundant search for a suitable converter in JsonItemConverter
  • added a restriction for TargetVariable and AllowedInputVariables in RegressionProblemDataConverter
  • removed unnecessary code in Runner
Location:
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters
Files:
2 added
1 edited

Legend:

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

    r17519 r17540  
    254254      };
    255255    }
    256      
    257 
    258     private IJsonItem GetTargetVariable(IItem item) =>
    259       new StringJsonItem() {
     256
     257
     258    private IJsonItem GetTargetVariable(IItem item) {
     259      var vars = (IEnumerable<StringValue>)((dynamic)item).InputVariables;
     260      return new StringJsonItem() {
    260261        Name = TargetVariable,
    261262        Value = (string)((dynamic)item).TargetVariable,
    262         //ConcreteRestrictedItems = variables.Select(x => x.Value)
    263       };
    264 
    265     private IJsonItem GetAllowedInputVariables(IItem item) =>
    266       new StringArrayJsonItem() {
     263        ConcreteRestrictedItems = vars.Select(x => x.Value)
     264      };
     265    }
     266
     267    private IJsonItem GetAllowedInputVariables(IItem item) {
     268      var vars = (IEnumerable<StringValue>)((dynamic)item).InputVariables;
     269      return new StringArrayJsonItem() {
    267270        Name = AllowedInputVariables,
    268271        Value = ((IEnumerable<string>)((dynamic)item).AllowedInputVariables).ToArray(),
    269         //ConcreteRestrictedItems = variables.Select(x => x.Value)
    270       };
     272        ConcreteRestrictedItems = vars.Select(x => x.Value)
     273      };
     274    }
    271275    #endregion
    272276  }
Note: See TracChangeset for help on using the changeset viewer.