Skip to content

Commit

Permalink
Update GenericRecognizerTests.cs
Browse files Browse the repository at this point in the history
Issue #471 Remove hard coded path.
  • Loading branch information
towsey committed Jun 15, 2021
1 parent fecf13c commit c9fd40b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,8 @@ 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");
this.SaveTestOutput(outputDirectory => GenericRecognizer.SaveDebugSpectrogram(results, config, outputDirectory, "TestWhistle"));

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

0 comments on commit c9fd40b

Please sign in to comment.