Skip to content

Commit

Permalink
Fixes bug in event converter
Browse files Browse the repository at this point in the history
Was causing KoalaMale to fail
  • Loading branch information
atruskie committed Aug 15, 2023
1 parent e5756e1 commit 008ee3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/AnalysisPrograms/AnalysisPrograms.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<Compile Include="..\AssemblyMetadata.Generated.cs" Link="Properties\AssemblyMetadata.Generated.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="FSharp.Core" Version="6.0.5" />
<PackageReference Include="FSharp.Core" Version="6.0.7" />
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="3.1.0" />
<PackageReference Include="SixLabors.ImageSharp" Version="2.1.2" />
<PackageReference Include="SixLabors.ImageSharp.Drawing" Version="1.0.0-beta14" />
Expand Down
2 changes: 1 addition & 1 deletion src/AudioAnalysisTools/Events/EventConverters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static SpectralEvent ConvertAcousticEventToSpectralEvent(this AcousticEve
public static AcousticEvent ConvertSpectralEventToAcousticEvent(this SpectralEvent se)
{
var segmentStartOffset = TimeSpan.FromSeconds(se.SegmentStartSeconds);
double startTime = se.EventStartSeconds;
double startTime = se.EventStartSeconds - segmentStartOffset.TotalSeconds;
double duration = se.EventDurationSeconds;
double minHz = se.HighFrequencyHertz;
double maxHz = se.HighFrequencyHertz;
Expand Down

0 comments on commit 008ee3d

Please sign in to comment.