Changes to the modal code to increase the percentage to 30% and alter some of the groupings to give a better daily summary symbol. #1925
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
After investigating the various options for improving the daily summary symbol we decided that the best option in the time allowed was:
Change the minimum modal percentage from 10% to 30% to allow the code to use the grouping in more situations.
Change the groupings to make them more representative. This involved adding drizzle to the "rain" grouping and also adding a "visibility" grouping containing mist and fog. The new groupings can be seen below:
"snow": [23, 24, 26, 27] (light snow shower, light snow, heavy snow shower, heavy snow)
"sleet": [17, 18] (sleet shower, sleet)
"rain": [10, 11, 12, 14, 15] (light shower, drizzle, light rain, heavy shower, heavy rain)
"convection": [20, 21, 29, 30] (hail shower, hail, thunder shower, thunder)
"visibility": [5, 6] (mist, fog)
This ticket makes those changes.
Acceptance test data: metoppv/improver_test_data#22
Testing: