-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
31 lines (28 loc) · 1.11 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
set dotenv-load := true
datadir := "tests" / "data"
# Download the test data
download:
#!/usr/bin/env bash
set -euxo pipefail
# Download the reconstructed features
tiles=("9/316/552" "9/316/556")
for tile_id in "${tiles[@]}" ;
do
filename="${tile_id//'/'/'-'}.city.json.gz"
wget "https://data.3dbag.nl/cityjson/v20231008/tiles/$tile_id/$filename" -P "tests/data"
gunzip "tests/data/$filename"
done
# Render the report with Quarto. Requires that a Python3.12 virtualenv is set up in the 'venv_312' directory.
render:
#!/usr/bin/env bash
set -euxo pipefail
export QUARTO_PYTHON="$(pwd)/venv_312/bin/python3.12"
source "$(pwd)/venv_312/bin/activate"
quarto render ./report/report_nl.qmd --execute --output-dir ../docs
# Preview the report with Quarto. Requires that a Python3.12 virtualenv is set up in the 'venv_312' directory.
preview $QUARTO_PYTHON="../venv_312/bin/python3.12":
#!/usr/bin/env bash
set -euxo pipefail
export QUARTO_PYTHON="$(pwd)/venv_312/bin/python3.12"
source "$(pwd)/venv_312/bin/activate"
quarto preview ./report/report_nl.qmd