Skip to content

Commit

Permalink
Merge pull request #48 from tesar-tech/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
tesar-tech authored Jan 2, 2024
2 parents 60a7eac + 5a91d2e commit 33fce7d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions TremAn3/ViewModels/ResultsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ await Task.Run(async () => {

public async Task ComputeAdditionalResults()
{
await WindowManagerService.Current.MainDispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
{
CoherenceAverage = DataResultsDict[DataSeriesType.Coherence].Y.Average();

await WindowManagerService.Current.MainDispatcher.RunAsync(CoreDispatcherPriority.Normal, () => {
if (DataResultsDict.ContainsKey(DataSeriesType.Coherence) && DataResultsDict[DataSeriesType.Coherence].Y != null)
CoherenceAverage = DataResultsDict[DataSeriesType.Coherence].Y.Average();
});
}

Expand Down

0 comments on commit 33fce7d

Please sign in to comment.