-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
65 lines (55 loc) · 1.67 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
.PHONY=install
install:
pip install -e .
.PHONY=clean
clean:
rm -f tmd/storage/output/tmd* tmd/storage/output/cached_files
tmd/storage/output/tmd.csv.gz: \
setup.py \
tmd/imputation_assumptions.py \
tmd/datasets/tmd.py \
tmd/datasets/puf.py \
tmd/datasets/cps.py \
tmd/datasets/taxcalc_dataset.py \
tmd/utils/taxcalc_utils.py \
tmd/utils/imputation.py \
tmd/utils/is_tax_filer.py \
tmd/utils/pension_contributions.py \
tmd/utils/soi_replication.py \
tmd/utils/soi_targets.py \
tmd/utils/reweight.py \
tmd/utils/trace.py \
tmd/create_taxcalc_input_variables.py
python tmd/create_taxcalc_input_variables.py
tmd/storage/output/tmd_weights.csv.gz: \
tmd/storage/input/cbo_population_forecast.yaml \
tmd/storage/output/tmd.csv.gz \
tmd/create_taxcalc_sampling_weights.py
python tmd/create_taxcalc_sampling_weights.py
tmd/storage/output/tmd_growfactors.csv: \
tmd/storage/input/puf_growfactors.csv \
tmd/create_taxcalc_growth_factors.py
python tmd/create_taxcalc_growth_factors.py
tmd/storage/output/cached_files: \
tmd/storage/output/tmd.csv.gz \
tmd/storage/output/tmd_weights.csv.gz \
tmd/storage/output/tmd_growfactors.csv \
tmd/storage/__init__.py \
tmd/create_taxcalc_cached_files.py
python tmd/create_taxcalc_cached_files.py
.PHONY=tmd_files
tmd_files: tmd/storage/output/tmd.csv.gz \
tmd/storage/output/tmd_weights.csv.gz \
tmd/storage/output/tmd_growfactors.csv \
tmd/storage/output/cached_files
.PHONY=test
test: tmd_files
pytest . -v -n4
.PHONY=data
data: install tmd_files test
.PHONY=format
format:
black . -l 79
.PHONY=reweighting-visualisation
reweighting-visualisation:
tensorboard --logdir=tmd/storage/output/reweighting