Skip to content

Prevent duplicate scores in classification tables #161

@jatkinson1000

Description

@jatkinson1000

Sometimes we can have repeated scores in the tables where there are classification bounds that sit inside two score values in the handicap tables.

For example U12 Ladies Longbow on a New Warwick:

New Warwick 	2 	2 	3 	4 	6 	9

with A3 and A2 handicap thresholds at 137 and 131 respectively.

We see how this happens from the following handicap tables (click to show).
 HC SCORE
128 	3
129 	
130 	
131 	
132 	
133 	
134 	
135 	
136 	
137 	
138 	2
139 	
140 	
141 	
142 	
143 	
144 	
145 	
146 	
147 	
148 	
149 	
150 	1

Remedy should be that any score threshold is always one more than the one below, so the solution here would be to become:

New Warwick 	2 	3 	4 	5 	6 	9

Which is a little alarming as 3 classes get bumped, but this is an extreme case.
Unlikely to occur in many places, and even less so in realistic places, and changes by a few points only.

Practically the fix will be amending code in the classification_scores functions to perform a check that successive classification scores are 1 more than the previous, and incrementing if not.
Incrementation should be performed before subsequent checks.
Edge cases to be checked are max score or -9999 fill value.

Metadata

Metadata

Assignees

Labels

2026 UpdateUpdates for release of the 2026 classification tables.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions