Paper Dynasty Card Creation - Baseball card generation system
Go to file
2023-10-21 00:40:15 -05:00
card-output August '23 PotM Cards 2023-09-07 13:14:15 -05:00
data-input Final 2023 data update 2023-10-21 00:39:50 -05:00
html work fielding and batting functional 2023-09-24 18:58:44 -05:00
.gitignore Update .gitignore 2023-04-30 14:08:00 -05:00
calcs_batter.py Full 2023 run complete 2023-10-21 00:40:15 -05:00
calcs_defense.py Beginning work on pitching rating calcs 2023-09-29 16:24:43 -05:00
calcs_pitcher.py Full 2023 run complete 2023-10-21 00:40:15 -05:00
card_creation.py Phase 1 of automated updates 2023-09-19 09:38:18 -05:00
card_output.py Consolidated db preparation 2023-09-07 13:14:32 -05:00
check_cards.py Full 2023 run complete 2023-10-21 00:40:15 -05:00
creation_helpers.py Full 2023 run complete 2023-10-21 00:40:15 -05:00
db_calls_card_creation.py Consolidated db preparation 2023-09-07 13:14:32 -05:00
db_calls.py Batting card generation active 2023-10-14 23:42:53 -05:00
import_players.py Consolidated db preparation 2023-09-07 13:14:32 -05:00
live_series_update.py Full 2023 run complete 2023-10-21 00:40:15 -05:00
manual_updates.py Initial commit 2023-02-22 15:40:02 -06:00
migrate_to_cloud.py Phase 1 of automated updates 2023-09-19 09:38:18 -05:00
pit_chance_to_output.py Consolidated db preparation 2023-09-07 13:14:32 -05:00
README.txt July PotM & 2023-08-02 Update 2023-08-03 17:07:46 -05:00
rename-cards.py Create rename-cards.py 2023-02-24 12:39:42 -06:00

#######
DATA REQUIREMENTS
#######

- Add any new players to players.csv for import
- Create directory in /data-input in format `XXXX Season Cardset`
- Upload the following csv files:
    - baserunning-data.csv
        - https://www.baseball-reference.com/leagues/majors/2023-baserunning-batting.shtml
        - Remove header lines
    - batter-stats.csv
        - https://www.fangraphs.com/leaders/splits-leaderboards
        - Remove header lines
        - 20 PA vL / 40 PA vR for Live || 50 PA vL / 75 PA vR for legacy seasons
    - defense-X.csv (each position)
        - https://www.baseball-reference.com/leagues/majors/2023-specialpos_p-fielding.shtml
        - replace the `p` in `p-fielding` with 1b/2b/lf
        - Column Changes (pre-2013)
            - Catchers: add column between Rgood and RsbC
            - 1b/2b/3b/ss: add 3 columns between Rgood and Rbnt
    - defense-of.csv (don't forget combined OF)
        - https://www.baseball-reference.com/leagues/majors/2023-specialpos_of-fielding.shtml
        - replace the `p` in `p-fielding` with of
    - pitcher-data.csv
        - https://www.baseball-reference.com/leagues/majors/2023-standard-pitching.shtml
    - pitcher-stats.csv
        - https://www.fangraphs.com/leaders/splits-leaderboards
        - Remove header lines
        - 20 TBF vL / 40 TBF vR for Live || 50 TBF vL / 75 TBF vR for legacy seasons

#######
CARD CREATION PROCESS
#######

1) Import new players for sba_id with `1. Import Players`
2) Confirm cardset exists; if not, create now
3) Create cards with `3. Card Creation`
4) Generate csv output with `4. Card Output`
5) Upload output files into Sheets for Component Studio import
6) Upload ratings output files into Sheets for PD Ratings Guide
7) Import cards into Component Studio
8) Export -> Download All from Component Studio
9) Rename image files to <first>.<last>.png