Skip to content

Commit

Permalink
Update GenericRecognizer.cs
Browse files Browse the repository at this point in the history
Issue #390 Fixed bug which meant that plots were not being returned with events.
  • Loading branch information
towsey authored and atruskie committed Nov 1, 2020
1 parent f080005 commit e7e974f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/AnalysisPrograms/Recognizers/GenericRecognizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -229,6 +230,7 @@ public static RecognizerResults RunProfiles(
ae.Profile = profileName;
});

// AED does not return plots.
combinedResults.NewEvents.AddRange(spectralEvents);
combinedResults.Sonogram = spectrogram;
}
Expand Down

0 comments on commit e7e974f

Please sign in to comment.