How peteryr/ak-upgrade-calc works
This is a small Arknights data-processing script: it fetches operator and material-value data, totals promotion and skill-mastery costs, converts those totals to sanity values, and writes rarity-specific CSV reports. The main script owns the workflow and output writing. The source excerpt shows the external requests and processing; the generated CSV files are present in the tree. The README is only a generated timestamp, so it does not document further capabilities.
Main entry points: main.py Workflow runner · output_E2_4.csv Promotion report 4★ · output_E2_5.csv Promotion report 5★ · output_E2_6.csv Promotion report 6★
Components 18
Data inputs
- Sanity values
main.py - Operator data
main.py
Cost processing
- Workflow runner
main.py - Promotion costs
main.py - Mastery costs
main.py - Sanity valuation
main.py
Reports
- CSV report writing
main.py - Promotion report 4★
output_E2_4.csv - Promotion report 5★
output_E2_5.csv - Promotion report 6★
output_E2_6.csv - Mastery report 4★
output_M3_4.csv - Mastery report 5★
output_M3_5.csv - Mastery report 6★
output_M3_6.csv
Other components
- Script invocation
- Sanity-value sheet
- CN character data
- CN character patches
- EN character data
Connections 17
- Script invocation → Workflow runner: runs
main.py - Workflow runner → Sanity values: calls
main.py - Sanity values → Sanity-value sheet: reads
main.py - Workflow runner → Operator data: calls
main.py - Operator data → CN character data: fetches
main.py - Operator data → CN character patches: fetches
main.py - Operator data → EN character data: fetches
main.py - Workflow runner → Promotion costs: calls
main.py - Workflow runner → Mastery costs: calls
main.py - Workflow runner → Sanity valuation: calculates
main.py - Workflow runner → CSV report writing: writes
main.py - CSV report writing → Promotion report 4★: writes
main.py - CSV report writing → Promotion report 5★: writes
main.py - CSV report writing → Promotion report 6★: writes
main.py - CSV report writing → Mastery report 4★: writes
main.py - CSV report writing → Mastery report 5★: writes
main.py - CSV report writing → Mastery report 6★: writes
main.py