paper-dynasty-card-creation/pitchers
Cal Corum 1d96223c78 fix: use player_id instead of key_bbref in create_pit_position() (#7)
Closes #7

The fallback branch of create_pit_position() used `int(df_data["key_bbref"])`
which always raises ValueError for string IDs like 'verlaju01'. The exception
was silently swallowed, causing pitchers without defensive stats to receive no
position record at all.

Fix: use `int(float(df_data["player_id"]))` to match the pattern used in
create_pitching_card() on the same file.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-20 23:03:43 -05:00
..
__init__.py Refactor pit/bat/def to modules 2023-11-05 12:18:42 -06:00
calcs_pitcher.py Run black and ruff across entire codebase 2026-03-08 14:24:33 -05:00
card_builder.py Fix two bugs in pitcher card builder dispatch logic 2026-02-26 12:04:51 -06:00
creation.py fix: use player_id instead of key_bbref in create_pit_position() (#7) 2026-03-20 23:03:43 -05:00
models.py Fix SLG formula drift in extracted rating models 2026-02-26 07:47:15 -06:00