-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
72 lines (52 loc) · 4.93 KB
/
Makefile
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Build MS Word paper.
build:
mkdir ./build
.PHONY: paper clean tus-data test
paper: | build build/paper.docx
clean:
rm -rf ./build/*
test: | build
py.test
tus-data: build/seed.pickle build/markov-ts.pickle
build/seed.pickle: ./data/UKDA-4504-tab/tab/Individual_data_5.tab ./scripts/tus/seed.py | build
python ./scripts/tus/seed.py ./data/UKDA-4504-tab/tab/Individual_data_5.tab ./build/seed.pickle
build/markov-ts.pickle: ./data/UKDA-4504-tab/tab/diary_data_8.tab ./scripts/tus/markovts.py | build
python ./scripts/tus/markovts.py ./data/UKDA-4504-tab/tab/diary_data_8.tab ./build/markov-ts.pickle
build/feature-association.pickle build/ts-association.pickle: ./build/seed.pickle ./build/markov-ts.pickle ./scripts/tus/association.py
python ./scripts/tus/association.py ./build/seed.pickle ./build/markov-ts.pickle ./build/feature-association.pickle ./build/ts-association.pickle
build/ts-association-filtered-stats.csv: build/ts-association.pickle scripts/tus/analyseassociation.py
python scripts/tus/analyseassociation.py build/seed.pickle build/ts-association.pickle build/ts-association-full-stats.csv build/ts-association-filtered-stats.csv
build/ts-association.png: ./build/ts-association.pickle ./scripts/plot/association.py
python ./scripts/plot/association.py ./build/ts-association.pickle ./build/ts-association.png
build/population-cluster.png: ./build/seed.pickle ./build/markov-ts.pickle ./scripts/plot/popcluster.py
python ./scripts/plot/popcluster.py ./build/seed.pickle ./build/markov-ts.pickle ./build/population-cluster.png
build/sim-input.db: ./build/seed.pickle ./build/markov-ts.pickle ./config/default.yaml ./scripts/simulationinput.py
python ./scripts/simulationinput.py ./build/seed.pickle ./build/markov-ts.pickle ./config/default.yaml build/sim-input.db
build/energy-agents.jar: | build
curl -Lo build/energy-agents.jar 'https://github.com/timtroendle/energy-agents/releases/download/v1.0.0/energy-agents-1.0.0-jar-with-dependencies.jar'
build/sim-output.db: build/energy-agents.jar build/sim-input.db scripts/runsim.py config/default.yaml
python scripts/runsim.py build/energy-agents.jar build/sim-input.db build/sim-output.db config/default.yaml
build/sim-output-default-ward.db: build/energy-agents.jar build/seed.pickle build/markov-ts.pickle config/default-ward.yaml scripts/simulationinput.py scripts/runsim.py
python scripts/simulationinput.py build/seed.pickle build/markov-ts.pickle config/default-ward.yaml build/sim-input-default-ward.db
python scripts/runsim.py build/energy-agents.jar build/sim-input-default-ward.db build/sim-output-default-ward.db config/default-ward.yaml
build/sim-output-age.db: build/energy-agents.jar build/seed.pickle build/markov-ts.pickle config/age.yaml scripts/simulationinput.py scripts/runsim.py
python scripts/simulationinput.py build/seed.pickle build/markov-ts.pickle config/age.yaml build/sim-input-age.db
python scripts/runsim.py build/energy-agents.jar build/sim-input-age.db build/sim-output-age.db config/age.yaml
build/sim-output-qual.db: build/energy-agents.jar build/seed.pickle build/markov-ts.pickle config/qual.yaml scripts/simulationinput.py scripts/runsim.py
python scripts/simulationinput.py build/seed.pickle build/markov-ts.pickle config/qual.yaml build/sim-input-qual.db
python scripts/runsim.py build/energy-agents.jar build/sim-input-qual.db build/sim-output-qual.db config/qual.yaml
build/sim-output-pseudo.db: build/energy-agents.jar build/seed.pickle build/markov-ts.pickle config/pseudo.yaml scripts/simulationinput.py scripts/runsim.py
python scripts/simulationinput.py build/seed.pickle build/markov-ts.pickle config/pseudo.yaml build/sim-input-pseudo.db
python scripts/runsim.py build/energy-agents.jar build/sim-input-pseudo.db build/sim-output-pseudo.db config/pseudo.yaml
build/thermal-diff.png: build/sim-output-pseudo.db build/sim-output-qual.db
build/thermal-diff.png: build/sim-output-default-ward.db build/sim-output-age.db scripts/plot/powerdiff.py
python scripts/plot/powerdiff.py build/sim-output-default-ward.db 'age' build/sim-output-age.db 'qualification' build/sim-output-qual.db 'none' build/sim-output-pseudo.db build/thermal-diff.png
build/thermal-power.png build/choropleth.png build/scatter.png: build/sim-output.db config/default.yaml scripts/plot/simulationresults.py
python scripts/plot/simulationresults.py build/sim-output.db config/default.yaml build/thermal-power.png build/choropleth.png build/scatter.png
build/paper.docx: doc/literature.bib doc/online.bib doc/main.md doc/pandoc-metadata.yml
build/paper.docx: build/ts-association.png build/population-cluster.png build/thermal-power.png
build/paper.docx: build/choropleth.png build/scatter.png build/thermal-diff.png
build/paper.docx: build/ts-association-filtered-stats.csv doc/figures/flow-chart-time-step.png
cd ./doc && \
pandoc --filter pantable --filter pandoc-fignos --filter pandoc-tablenos --filter pandoc-citeproc \
--reference-docx ./paper-template.docx main.md pandoc-metadata.yml -t docx -o ../build/paper.docx