Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revised summary indices - removed and updated old values #228

Merged
merged 30 commits into from
Mar 25, 2019

Conversation

towsey
Copy link
Contributor

@towsey towsey commented Mar 14, 2019

I have fixed the expected test results for the three tests that were failing.

Closes #217

towsey and others added 21 commits January 29, 2019 13:05
Update for testing  Analysis Programs
This reverts commit c5fa3cb.
Checking the combine effect of the most recent merge.
Four small changes:
1. Adjusted max bound of Clipping Index
2. Chnaged paths in Sandpit.cs for testing
3. Added two new RGB index combinations.
4. Added (Action) cast to enable build.
Separate out the Channel Integrity indices from the standard Summary Indices. Now have a separate IndexProperties file for channel integrity indices.
Also change Bounds for the clipping index.
Removed IncludeInComboIndex & ComboWeight as Index properties.
Removed six unused indices from the IndexProperties config file, including Rain and Cicadas.
Remove BGN string constant.
remove two tests for now deleted Indices.

Shifted method ConvertToDictionaryOfSummaryIndices() and related method to class SummaryIndexValues because this was more suitable location ie dealing with dictiionaries of arrays, not matrices.
No longer needed.
Also do some resharper stuff
Also clean up commented code.
Most of the issues have been resolved.
BUT.....
Did NOT generalise the method SummaryIndexvalues.GetDictionaryOfSummaryIndices(List<SummaryIndexValues> summaryIndices)

Anhtony will have to do this. I have increased the number of summary indices displayed.
remove two of the summary indices for display.
Changed tests to accomodate changed files numbers and content.
Changed Consine to Cosine - this affect several methods
Use the full range of the y-axis scale when drawing histogram.
Add the number of the modal bin to the collected statistics.
Change method arguments to accept modalBin.
Remove duplicated lines from SpectrogramConstants.cs.
Write SandPit method to test drawing of histograms.
this can be turned into a unit test.
NOTE: The "gap" in the histograms noted in Issue #186 is due to way Rectangular bars were drawn. Nothing to do with inadequate size of int.
Where mode of distribution = 0.0, this will contribute to suboptimal colour rendering of histograms. Start work on setting modal value > 0.0.
One reason for suboptimal rendering of LFFC spectrograms is that in some cases the mode of the distribution of index values is also the minimum, expecially in case of Entropy where mode often = zero. When tihs occur, now prevent mode being in the bottom two histogram bins.
Most of the other changes are resharper inspired or designed to simplify code.
Fix tests where there was incorrect assertion of colour.
ConcatenateIndexFiles now removes duplicate files from the directory search. This makes it wasier to omit the directory filter argument which does not have enough expressiveness to select all relevant directories, while not including sub-directories - which would lead to "System.ArgumentException: An entry with the same key already exists." errors.

If there are legitimately duplicate dates, I've changed the code so it returns a better, more readable error.
@atruskie atruskie changed the title Summary indices issue #217 Revised summary indices - removed and updated old values Mar 25, 2019
towsey added 8 commits March 25, 2019 11:25
Separate out the Channel Integrity indices from the standard Summary Indices. Now have a separate IndexProperties file for channel integrity indices.
Also change Bounds for the clipping index.
Removed IncludeInComboIndex & ComboWeight as Index properties.
Removed six unused indices from the IndexProperties config file, including Rain and Cicadas.
Remove BGN string constant.
remove two tests for now deleted Indices.

Shifted method ConvertToDictionaryOfSummaryIndices() and related method to class SummaryIndexValues because this was more suitable location ie dealing with dictiionaries of arrays, not matrices.
No longer needed.
Also do some resharper stuff
Also clean up commented code.
Most of the issues have been resolved.
BUT.....
Did NOT generalise the method SummaryIndexvalues.GetDictionaryOfSummaryIndices(List<SummaryIndexValues> summaryIndices)

Anhtony will have to do this. I have increased the number of summary indices displayed.
remove two of the summary indices for display.
Changed tests to accomodate changed files numbers and content.
Changed Consine to Cosine - this affect several methods
@atruskie atruskie merged commit 86749cd into master Mar 25, 2019
@atruskie atruskie deleted the SummaryIndices-Issue-#217 branch February 17, 2020 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Code for writing Summary Index file and Images is overly complex
2 participants