Skip to content

Commit

Permalink
Update PteropusSpTests.cs
Browse files Browse the repository at this point in the history
Both the Flying Fox tests now pass.
  • Loading branch information
towsey committed May 8, 2020
1 parent deee017 commit 5cbf017
Showing 1 changed file with 20 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,28 +85,26 @@ public void TestGetWingBeatEvents()

Assert.AreEqual(4, acousticEvents.Count);

Assert.Fail("Michael fix me");
/*
Assert.AreEqual(5, acousticEvents[0].Oblong.ColumnLeft);
Assert.AreEqual(46, acousticEvents[0].Oblong.ColumnRight);
Assert.AreEqual(1280, acousticEvents[0].Oblong.RowTop);
Assert.AreEqual(1381, acousticEvents[0].Oblong.RowBottom);
Assert.AreEqual(5, acousticEvents[1].Oblong.ColumnLeft);
Assert.AreEqual(46, acousticEvents[1].Oblong.ColumnRight);
Assert.AreEqual(1762, acousticEvents[1].Oblong.RowTop);
Assert.AreEqual(1826, acousticEvents[1].Oblong.RowBottom);
Assert.AreEqual(5, acousticEvents[2].Oblong.ColumnLeft);
Assert.AreEqual(46, acousticEvents[2].Oblong.ColumnRight);
Assert.AreEqual(2083, acousticEvents[2].Oblong.RowTop);
Assert.AreEqual(2208, acousticEvents[2].Oblong.RowBottom);
Assert.AreEqual(5, acousticEvents[3].Oblong.ColumnLeft);
Assert.AreEqual(46, acousticEvents[3].Oblong.ColumnRight);
Assert.AreEqual(2334, acousticEvents[3].Oblong.RowTop);
Assert.AreEqual(2383, acousticEvents[3].Oblong.RowBottom);
*/
Assert.AreEqual(29.72, acousticEvents[0].EventStartSeconds, 0.1);
Assert.AreEqual(32.06, acousticEvents[0].EventEndSeconds, 0.1);
Assert.AreEqual(200, acousticEvents[0].LowFrequencyHertz);
Assert.AreEqual(2000, acousticEvents[0].HighFrequencyHertz);

Assert.AreEqual(40.91, acousticEvents[1].EventStartSeconds, 0.1);
Assert.AreEqual(42.40, acousticEvents[1].EventEndSeconds, 0.1);
Assert.AreEqual(200, acousticEvents[1].LowFrequencyHertz);
Assert.AreEqual(2000, acousticEvents[1].HighFrequencyHertz);

Assert.AreEqual(48.37, acousticEvents[2].EventStartSeconds, 0.1);
Assert.AreEqual(51.27, acousticEvents[2].EventEndSeconds, 0.1);
Assert.AreEqual(200, acousticEvents[2].LowFrequencyHertz);
Assert.AreEqual(2000, acousticEvents[2].HighFrequencyHertz);

Assert.AreEqual(54.19, acousticEvents[3].EventStartSeconds, 0.1);
Assert.AreEqual(55.33, acousticEvents[3].EventEndSeconds, 0.1);
Assert.AreEqual(200, acousticEvents[3].LowFrequencyHertz);
Assert.AreEqual(2000, acousticEvents[3].HighFrequencyHertz);

//Assert.AreEqual(0.6062, stats.SpectralEnergyDistribution, 1E-4);
}

Expand Down

0 comments on commit 5cbf017

Please sign in to comment.