Paper Dynasty Card Creation - Baseball card generation system
Go to file
2023-03-04 15:38:20 -06:00
card-output Create 2013 card data 2023-02-26 00:33:42 -06:00
data-input 2012 Input Files 2023-03-04 15:38:20 -06:00
.gitignore Update .gitignore 2023-02-22 15:39:46 -06:00
calcs_batter.py Update calcs_batter.py 2023-02-24 11:55:03 -06:00
calcs_defense.py Defense updates to use DRS 2023-03-04 15:37:46 -06:00
calcs_pitcher.py Initial commit 2023-02-22 15:40:02 -06:00
card_creation.py Update card_creation.py 2023-02-26 00:33:02 -06:00
card_output.py Update card_output.py 2023-02-24 21:47:29 -06:00
creation_helpers.py Update creation_helpers.py 2023-02-24 21:47:37 -06:00
db_calls_card_creation.py Update db_calls_card_creation.py 2023-02-24 12:38:41 -06:00
import_players.py Update import_players.py 2023-02-26 00:33:21 -06:00
manual_updates.py Initial commit 2023-02-22 15:40:02 -06:00
pit_chance_to_output.py Initial commit 2023-02-22 15:40:02 -06:00
README.txt Update README.txt 2023-02-26 00:33:26 -06: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/2022-baserunning-batting.shtml
        - Remove header lines
    - batter-stats.csv
        - https://www.fangraphs.com/leaders/splits-leaderboards
        - Remove header lines
    - defense-X.csv (each position)
        - https://www.baseball-reference.com/leagues/majors/2022-specialpos_p-fielding.shtml
        - replace the `p` in `p-fielding` with 1b/2b/lf
    - defense-of.csv (don't forget combined OF)
        - https://www.baseball-reference.com/leagues/majors/2022-specialpos_p-fielding.shtml
        - replace the `p` in `p-fielding` with of
    - pitcher-data.csv
        - https://www.baseball-reference.com/leagues/majors/2022-standard-pitching.shtml
    - pitcher-stats.csv
        - https://www.fangraphs.com/leaders/splits-leaderboards
        - Remove header lines

#######
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