Skip to content

Commit

Permalink
remove option to include Sunrise data
Browse files Browse the repository at this point in the history
Also clean up commented code.
  • Loading branch information
towsey authored and atruskie committed Mar 25, 2019
1 parent b9fe5db commit 21d8925
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 46 deletions.
6 changes: 2 additions & 4 deletions src/AudioAnalysisTools/Indices/IndexDisplay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ public static Bitmap DrawImageOfSummaryIndices(
FileInfo csvFile,
string titleText,
TimeSpan indexCalculationDuration,
DateTimeOffset? recordingStartDate,
FileInfo sunriseDataFile = null)
DateTimeOffset? recordingStartDate)
{
if (!csvFile.Exists)
{
Expand Down Expand Up @@ -96,7 +95,6 @@ public static Bitmap DrawImageOfSummaryIndices(
var backgroundColour = Color.White;
foreach (string key in dictionaryOfSummaryIndices.Keys)
{
string correctKey = key;
if (!listOfIndexProperties.ContainsKey(key))
{
if (verbose)
Expand All @@ -107,7 +105,7 @@ public static Bitmap DrawImageOfSummaryIndices(
continue;
}

IndexProperties ip = listOfIndexProperties[correctKey];
IndexProperties ip = listOfIndexProperties[key];
if (!ip.DoDisplay)
{
continue;
Expand Down
41 changes: 0 additions & 41 deletions src/AudioAnalysisTools/Indices/InitialiseIndexProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,46 +114,5 @@ public static Dictionary<string, IndexProperties> GetDictionaryOfSummaryIndexPro

return dict;
}

/*
public static Dictionary<string, string> GetKeyTranslationDictionary()
{
var dict = new Dictionary<string, string>
{
{ "IndexCount", "RankOrder" },
{ "COUNT", "RankOrder" },
{ "START-MIN", "StartMinute" },
{ "SEGMENT-DUR", "AnalysisIdealSegmentDuration" },
{ "hiSIG-AMPL", "HighAmplitudeIndex" },
{ "CLIPPING", "ClippingIndex" },
{ "SIGNAL-AMPL", "AvSignalAmplitude" },
{ "BKGROUND", "BackgroundNoise" },
{ "SNR", "SNR" },
{ "SNR-ACTIVE", "AvSNRActive" },
{ "AvSNROfActiveFrames", "AvSNRActive" },
{ "ACTIVITY", "Activity" },
{ "EVENTS-RATE", "EventsPerSec" },
{ "avEVENT-DUR", "AvEventDuration" },
{ "HF-CVR", "HF_CVR" },
{ "MF-CVR", "MF_CVR" },
{ "LF-CVR", "LF_CVR" },
{ "H-TEMP", "Htemp" },
{ "Htemporal", "Htemp" },
{ "H-PEAK", "Hpeak" },
{ "H-SPG", "HAvSpectrum" },
{ "H-VAR", "HVarSpectrum" },
{ "ACI", "AcousticComplexity" },
{ "CLUSTER-COUNT", "ClusterCount" },
{ "avCLUST-DUR", "AvClusterDuration" },
{ "3GRAM-COUNT", "3GramCount" },
{ "SPT-RATE", "SPTPerSec" },
{ "avSPT-DUR", "AvSPTDuration" },
{ "RAIN", "RainIndex" },
{ "CICADA", "CicadaIndex" },
};
return dict;
}
*/
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public static void DrawSummaryIndexFiles(
FileInfo indexPropertiesConfigFileInfo,
DirectoryInfo opDir,
SiteDescription siteDescription,
FileInfo sunriseDatafile = null,
FileInfo sunriseDatafile = null, // no longer supported
List<GapsAndJoins> erroneousSegments = null, // info if have fatal errors i.e. no signal
bool verbose = false)
{
Expand Down

0 comments on commit 21d8925

Please sign in to comment.