- Timestamp:
- 05/12/20 17:06:04 (5 years ago)
- 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 254 254 }; 255 255 } 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() { 260 261 Name = TargetVariable, 261 262 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() { 267 270 Name = AllowedInputVariables, 268 271 Value = ((IEnumerable<string>)((dynamic)item).AllowedInputVariables).ToArray(), 269 //ConcreteRestrictedItems = variables.Select(x => x.Value) 270 }; 272 ConcreteRestrictedItems = vars.Select(x => x.Value) 273 }; 274 } 271 275 #endregion 272 276 }
Note: See TracChangeset
for help on using the changeset viewer.