Skip to content

Commit

Permalink
Finished debugging Australasian Pipit and tests
Browse files Browse the repository at this point in the history
Issue #321
  • Loading branch information
towsey authored and atruskie committed Jun 12, 2020
1 parent b7f74c4 commit d14d06c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,11 @@ Profiles:
FrameSize: 512
FrameStep: 256
WindowFunction: HANNING
#BgNoiseThreshold: 0.0
# min and max of the freq band to search
MinHertz: 2000
MaxHertz: 7000
MinBandwidthHertz: 500
MaxBandwidthHertz: 5000
#MinDuration: 0.1
#MaxDuration: 0.5
DecibelThreshold: 9.0

#################### POST-PROCESSING of EVENTS ###################
Expand All @@ -33,8 +30,8 @@ Profiles:
# 1: Combine overlapping events
CombineOverlappingEvents: true

# 2: Combine syllables that possibly belong to the saem strophe.
# Can also use this to "mop up" events in neighbourhood - for later removal.
# 2: Combine syllables that possibly belong to the same strophe.
# Can also use this to "mop up" events in neighbourhood - these can be removed later.
CombinePossibleSyllableSequence: true
SyllableStartDifference: 0.25
SyllableHertzGap: 3000
Expand All @@ -45,16 +42,16 @@ NeighbourhoodUpperHertzBuffer: 0
NeighbourhoodDbThreshold: 9.0

# C: Options to save results files
# 4: Available options for saving data files (case-sensitive): [False/Never | True/Always | WhenEventsDetected]
# 4: Available options for saving spectrograms (case-sensitive): [False/Never | True/Always | WhenEventsDetected]
# "True" is useful when debugging but "WhenEventsDetected" is required for operational use.
#SaveSonogramImages: True
SaveSonogramImages: WhenEventsDetected

# 5: Available options for saving data files (case-sensitive): [False/Never | True/Always | WhenEventsDetected]
SaveIntermediateWavFiles: Never
SaveIntermediateCsvFiles: false
# Available options (case-sensitive): [False/Never | True/Always | WhenEventsDetected]
# "True" is useful when debugging but "WhenEventsDetected" is required for operational use.

# 5: Available options for saving
SaveSonogramImages: True
#SaveSonogramImages: WhenEventsDetected
# DisplayCsvImage is obsolete - ensure it remains set to: false
# 6: DisplayCsvImage is obsolete - ensure it remains set to: false
DisplayCsvImage: false
## End section for AnalyzeLongRecording

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,17 @@ public void TestRecognizer()
Assert.IsInstanceOfType(events[2], typeof(CompositeEvent));
var ev = (CompositeEvent)events[2];

// event 2 should be a composite event.
// events[2] should be a composite event.
Assert.AreEqual(16.656, ev.EventStartSeconds);
Assert.AreEqual(17.008, ev.EventEndSeconds);
Assert.AreEqual(3596, ev.BandWidthHertz);

// event 2 should contain 5 component events
// This event should contain 5 component events
var componentEvents = ev.ComponentEvents;
Assert.AreEqual(5, componentEvents.Count);

// This tests that the component tracks are correctly combined.
//THis can also be tested somewhere else, starting with just the comosite event in json file.
//This can also be tested somewhere else, starting with just the comosite event in json file.
var points = EventExtentions.GetCompositeTrack(componentEvents).ToArray();
Assert.AreEqual(16.672, points[1].Seconds.Minimum);
Assert.AreEqual(5425, points[1].Hertz.Minimum);
Expand Down

0 comments on commit d14d06c

Please sign in to comment.