Fix SEASON_PCT hardcoded to half-season in retrosheet_data.py #9
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-card-creation#9
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
retrosheet_data.py:63—SEASON_PCT = 81 / 162withEND_DATE = 20050731. If run without understanding the global-mutation pattern (which overrides at runtime), will silently generate cards with half-season normalizations on full-season stats.Priority: medium | Labels: bug, tech-debt
Fixed in PR #36.
SEASON_PCTis now derived fromSTART_DATE,END_DATE, and a newSEASON_END_DATEconstant (2005 regular season end) rather than being hardcoded to81/162. With the existing defaults, it evaluates to~0.653instead of0.500, and will automatically stay in sync wheneverEND_DATEis updated.