Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10941 for trunk/sources


Ignore:
Timestamp:
06/04/14 13:26:26 (10 years ago)
Author:
mkommend
Message:

#2194: Improved CreateEnsembleMenuItem by taking the visibility of the runs into account.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/MenuItems/CreateEnsembleMenuItem.cs

    r10526 r10941  
    113113      var cloner = new Cloner();
    114114      var allResults = from r in runs
     115                       where r.Visible
    115116                       select r.Results;
    116117      return from r in allResults
    117118             from result in r
    118              let s = cloner.Clone(result.Value) as IDataAnalysisSolution
    119              where s != null
     119             let solution = result.Value as IDataAnalysisSolution
     120             where solution != null
     121             let s = (IDataAnalysisSolution)cloner.Clone(result.Value)
    120122             select new KeyValuePair<string, IDataAnalysisSolution>(result.Key, s);
    121123    }
Note: See TracChangeset for help on using the changeset viewer.