Skip to content

Commit

Permalink
Update GenericRecognizerTests.cs
Browse files Browse the repository at this point in the history
Issue #469 Remove hard-coded path.
  • Loading branch information
towsey committed Jun 13, 2021
1 parent b6a7a21 commit 160c0ea
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,9 @@ public void TestWhistleAlgorithm()

var results = recognizer.Recognize(recording, config, 100.Seconds(), null, this.TestOutputDirectory, null);

// add next two lines because cannot find spectrogram included with the test results.
// Used for debugging only
var image = SpectrogramTools.GetSonogramPlusCharts(results.Sonogram, results.NewEvents, results.Plots, null);
image.SaveAsPng("C:/temp/image.png");
var image1 = SpectrogramTools.GetSonogramPlusCharts(results.Sonogram, results.NewEvents, results.Plots, null);
image1.Save(this.TestOutputDirectory + "\\image1.png");

Assert.AreEqual(4, results.NewEvents.Count);
var @event = (SpectralEvent)results.NewEvents[0];
Expand Down

0 comments on commit 160c0ea

Please sign in to comment.