Skip to content

Commit e59da86

Browse files
committed
BugFix: Incorrect ranges in the definition of the WA Field scoring system making targets too large. Spotted by @TomHall2020.
1 parent 8f45558 commit e59da86

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

archeryutils/handicaps/handicap_scheme.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def arrow_score( # noqa: PLR0912 Too many branches
284284
- np.exp(-((((tar_dia / 20.0) + arw_rad) / sig_r) ** 2))
285285
- sum(
286286
np.exp(-((((n * tar_dia / 10.0) + arw_rad) / sig_r) ** 2))
287-
for n in range(2, 7)
287+
for n in range(1, 6)
288288
)
289289
)
290290

archeryutils/handicaps/tests/test_handicaps.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def test_different_handicap_systems(
340340
("10_zone_6_ring", 7.397557278),
341341
("10_zone_5_ring", 7.059965360),
342342
("10_zone_5_ring_compound", 6.993772436),
343-
("WA_field", 4.807397627),
343+
("WA_field", 4.115600784),
344344
("IFAA_field", 4.265744101),
345345
("IFAA_field_expert", 4.021942762),
346346
("Beiter_hit_miss", 0.9998380401),

0 commit comments

Comments
 (0)