Resolve or document the pitcher OPS aggregation formula #6
Labels
No Label
ai-changes-requested
ai-failed
ai-merged
ai-pr-opened
ai-reviewed
ai-reviewing
ai-reviewing
ai-working
bug
enhancement
evolution
performance
phase-0
phase-1a
phase-1b
phase-1c
phase-1d
security
tech-debt
todo
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-database#6
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?
`app/routers_v2/teams.py:611` — `# TODO: should this be max??`. The `get_total_ops` function uses `(ops_vr + ops_vl + min(ops_vl, ops_vr)) / 3`. Comment questions whether `min` should be `max`. Formula duplicated in `sort_starters` at line 691.
Priority: medium
PR opened: #60
Fix: Changed
min(ops_vl, ops_vr)→max(ops_vl, ops_vr)in bothget_total_ops(line 621) and the duplicate insidesort_starters(line 703). Themaxversion correctly penalises a pitcher's worst platoon split, which matters because starters face both LHH and RHH. Theminversion was rewarding dominant one-sided pitchers while understating their vulnerability against the other handedness. Also replaced the# TODOcomment with a brief explanatory note.