Skip to content

Commit

Permalink
feat: show the popularity of 3rd-party content like Base Sets, AIs, G…
Browse files Browse the repository at this point in the history
…Ses, and NewGRFs (#55)
  • Loading branch information
TrueBrain authored Dec 15, 2024
1 parent b8cb7ad commit 4125310
Show file tree
Hide file tree
Showing 255 changed files with 1,445,273 additions and 719,694 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/create-summary-quarter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,23 @@ jobs:
fi
done
- name: Download BaNaNaS database
uses: actions/checkout@v4
with:
repository: OpenTTD/BaNaNaS
path: BaNaNaS

- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Prepare environment
shell: bash
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run analysis
shell: bash
run: |
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/create-summary-week.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,23 @@ jobs:
rclone copy -v openttd:survey-packed-prod/${date_year}/${date_month}/openttd-survey-pack.${date}.tar.xz packed
done
- name: Download BaNaNaS database
uses: actions/checkout@v4
with:
repository: OpenTTD/BaNaNaS
path: BaNaNaS

- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Prepare environment
shell: bash
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run analysis
shell: bash
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ __pycache__/
/.env/
/_analysis/
/_site/
/BaNaNaS/
/workers/node_modules/
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ This is a [Jekyll](https://jekyllrb.com/) website, and is served by nginx as a s

To summarize survey results, the Python application `analysis` processes a bundle of JSONs and outputs another JSON with the summary.

To run it, simply execute `python3 -m analysis <tar-xz bundle files>`
To run it:
- `git clone https://github.com/OpenTTD/BaNaNaS` to get the BaNaNaS dataset (needed to resolve NewGRFs).
- Create a Python virtual env run `pip install -r requirements.txt`.
- `python3 -m analysis <tar-xz bundle files>` to run the analysis.

### Running a local server

Expand Down
Loading

0 comments on commit 4125310

Please sign in to comment.