-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathMakefile
34 lines (22 loc) · 1.18 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
serve:
python webapp/app.py
data_www15: data/exposure_www15_log.csv data/summary_www15_log.csv data/survey_www15_log.csv
data_old: data/exposure_old_log.csv data/summary_old_log.csv data/survey_old_log.csv
data_mturk2: data/exposure_mturk2_log.csv data/summary_mturk2_log.csv data/survey_mturk2_log.csv
clean_data:
rm data/*.csv
clean:
rm *.log
data/exposure_%_log.csv: webapp/logs/experiment_%.log
python webapp/extract_data.py --event=exposure --infile=$< --outfile=$@
data/summary_%_log.csv: webapp/logs/experiment_%.log
python webapp/extract_data.py --event=summary --infile=$< --outfile=$@
data/survey_%_log.csv: webapp/logs/survey_%.log
python webapp/extract_data.py --event=response --infile=$< --outfile=$@
clean_slides:
rm slides/*.slides.html
slides/%.slides.html: %.ipynb
ipython nbconvert $*.ipynb --to=slides --config=slides/slides_config.py --execute --stdout --reveal-prefix "http://cdn.jsdelivr.net/reveal.js/2.6.2" > $@
slides: slides/0-estimation-and-power.slides.html slides/1-planout-intro.slides.html slides/2-making-your-own-data.slides.html slides/4-analyzing-experiments.slides.html
serve_slides:
open http://127.0.0.1:9000 && python -m SimpleHTTPServer 9000