From e7e974f4cffbf65149e1cd666fe2b89baeb28760 Mon Sep 17 00:00:00 2001 From: towsey Date: Sun, 1 Nov 2020 10:24:30 +1100 Subject: [PATCH] Update GenericRecognizer.cs Issue #390 Fixed bug which meant that plots were not being returned with events. --- src/AnalysisPrograms/Recognizers/GenericRecognizer.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/AnalysisPrograms/Recognizers/GenericRecognizer.cs b/src/AnalysisPrograms/Recognizers/GenericRecognizer.cs index da6bbf8ef..9ff24bab2 100644 --- a/src/AnalysisPrograms/Recognizers/GenericRecognizer.cs +++ b/src/AnalysisPrograms/Recognizers/GenericRecognizer.cs @@ -204,6 +204,7 @@ public static RecognizerResults RunProfiles( Log.Debug($"Profile {profileName}: event count = {profileResults.NewEvents.Count}"); combinedResults.NewEvents.AddRange(profileResults.NewEvents); + combinedResults.Plots.AddRange(profileResults.Plots); combinedResults.Sonogram = spectrogram; } else if (profileConfig is Aed.AedConfiguration ac) @@ -229,6 +230,7 @@ public static RecognizerResults RunProfiles( ae.Profile = profileName; }); + // AED does not return plots. combinedResults.NewEvents.AddRange(spectralEvents); combinedResults.Sonogram = spectrogram; }