Skip to content

Commit

Permalink
Remove a call to one of my do-it-yourself test methods.
Browse files Browse the repository at this point in the history
Issue #300 remove DIY test method.
  • Loading branch information
towsey committed Mar 6, 2020
1 parent 3d1b263 commit 072742f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
6 changes: 4 additions & 2 deletions src/AnalysisPrograms/Recognizers/LewiniaPectoralis.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// --------------------------------------------------------------------------------------------------------------------
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="LewiniaPectoralis.cs" company="QutEcoacoustics">
// All code in this file and all associated files are the copyright and property of the QUT Ecoacoustics Research Group (formerly MQUTeR, and formerly QUT Bioacoustics Research Group).
// </copyright>
Expand Down Expand Up @@ -193,13 +193,15 @@ public override RecognizerResults Recognize(
prunedEvents.Add(ae);
}

// do a recognizer TEST.
/*
// do a recognizer TEST. DELETE ONE DAY!
if (false)
{
var testDir = new DirectoryInfo(outputDirectory.Parent.Parent.FullName);
TestTools.RecognizerScoresTest(recording.BaseName, testDir, recognizerConfig.AnalysisName, scoreArray);
AcousticEvent.TestToCompareEvents(recording.BaseName, testDir, recognizerConfig.AnalysisName, predictedEvents);
}
*/

// increase very low scores
for (int j = 0; j < scoreArray.Length; j++)
Expand Down
6 changes: 4 additions & 2 deletions src/AnalysisPrograms/Recognizers/LitoriaBicolor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,15 @@ public override RecognizerResults Recognize(AudioRecording recording, Config con
ae.SegmentDurationSeconds = recordingDuration.TotalSeconds;
}

// do a RECOGNIZER TEST.
/*
// do a RECOGNIZER TEST. DELETE ONE DAY!
if (false)
{
var testDir = new DirectoryInfo(outputDirectory.Parent.Parent.FullName);
TestTools.RecognizerScoresTest(recording.BaseName, testDir, recognizerConfig.AnalysisName, scoreArray);
AcousticEvent.TestToCompareEvents(recording.BaseName, testDir, recognizerConfig.AnalysisName, predictedEvents);
}
*/

var plot = new Plot(this.DisplayName, scoreArray, recognizerConfig.EventThreshold);
return new RecognizerResults()
Expand All @@ -171,7 +173,7 @@ public override RecognizerResults Recognize(AudioRecording recording, Config con
}

/// <summary>
/// ################ THE KEY ANALYSIS METHOD
/// THE KEY ANALYSIS METHOD.
/// </summary>
/// <param name="recording"></param>
/// <param name="sonoConfig"></param>
Expand Down
8 changes: 5 additions & 3 deletions src/AnalysisPrograms/Recognizers/LitoriaWatjulumensis.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,15 @@ public override RecognizerResults Recognize(AudioRecording recording, Config con
ae.SegmentStartSeconds = segmentStartOffset.TotalSeconds;
}

// do a recognizer TEST.
/*
// do a recognizer TEST. DELETE ONE DAY!
if (false)
{
var testDir = new DirectoryInfo(outputDirectory.Parent.Parent.FullName);
TestTools.RecognizerScoresTest(recording.BaseName, testDir, recognizerConfig.AnalysisName, scoreArray);
AcousticEvent.TestToCompareEvents(recording.BaseName, testDir, recognizerConfig.AnalysisName, predictedEvents);
}
*/

var plot = new Plot(this.DisplayName, scoreArray, recognizerConfig.EventThreshold);
return new RecognizerResults()
Expand All @@ -175,8 +177,8 @@ public override RecognizerResults Recognize(AudioRecording recording, Config con
};
}

/// <summary>
/// ################ THE KEY ANALYSIS METHOD for TRILLS
/// <summary>
/// ################ THE KEY ANALYSIS METHOD for TRILLS
///
/// See Anthony's ExempliGratia.Recognize() method in order to see how to use methods for config profiles.
/// </summary>
Expand Down

0 comments on commit 072742f

Please sign in to comment.