Ignore:
Timestamp:
01/29/19 12:44:09 (3 years ago)
Author:
chaider
Message:

#2971

  • Check if treeNode exists for specific intervals in SimplifierView
  • GridView fills space in NamedIntevalsView
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/InteractiveSymbolicDataAnalysisSolutionSimplifierView.cs

    r16549 r16581  
    203203        variableRanges.Add(keyValuePair.Key, keyValuePair.Value);
    204204      }
    205       var resultIntervals = await Task.Run(() => interpreter.GetSymbolicExressionTreeIntervals(tree, variableRanges, out intervals));
     205      var resultIntervals =  interpreter.GetSymbolicExressionTreeIntervals(tree, variableRanges, out intervals);
    206206      try {
    207207        await Task.Delay(500, cancellationTokenSource.Token); // wait for progressbar to finish animation
     
    305305          }
    306306        }
    307         if (visualTree != null)
    308           visualTree.ToolTip += String.Format($"{Environment.NewLine}Intervals: [{intervals[treeNode].LowerBound:G5} ... {intervals[treeNode].UpperBound:G5}]");
     307        if (visualTree != null) {
     308          if (intervals.ContainsKey(treeNode))
     309            visualTree.ToolTip += String.Format($"{Environment.NewLine}Intervals: [{intervals[treeNode].LowerBound:G5} ... {intervals[treeNode].UpperBound:G5}]");
    309310          if (changedNodes.ContainsKey(treeNode)) {
    310311            visualTree.LineColor = Color.DodgerBlue;
     
    312313            visualTree.LineColor = Color.DarkOrange;
    313314          }
     315        }
    314316      }
    315317      treeChart.RepaintNodes();
Note: See TracChangeset for help on using the changeset viewer.