-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #162 from PSLmodels/fix-warnings
Avoid deprecation warnings in uprate_puf.py code
- Loading branch information
Showing
5 changed files
with
61 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,66 @@ | ||
.PHONY=clean | ||
clean: | ||
rm -f tax_microdata_benchmarking/storage/output/* | ||
|
||
.PHONY=install | ||
install: | ||
pip install -e . | ||
python tax_microdata_benchmarking/download_prerequisites.py | ||
|
||
test: | ||
pytest . -v | ||
|
||
format: | ||
black . -l 79 | ||
|
||
flat-file: | ||
tax_microdata_benchmarking/storage/output/tmd.csv.gz: \ | ||
tax_microdata_benchmarking/imputation_assumptions.py \ | ||
tax_microdata_benchmarking/datasets/tmd.py \ | ||
tax_microdata_benchmarking/datasets/puf.py \ | ||
tax_microdata_benchmarking/datasets/cps.py \ | ||
tax_microdata_benchmarking/datasets/taxcalc_dataset.py \ | ||
tax_microdata_benchmarking/utils/taxcalc_utils.py \ | ||
tax_microdata_benchmarking/utils/imputation.py \ | ||
tax_microdata_benchmarking/utils/is_tax_filer.py \ | ||
tax_microdata_benchmarking/utils/pension_contributions.py \ | ||
tax_microdata_benchmarking/utils/soi_replication.py \ | ||
tax_microdata_benchmarking/utils/soi_targets.py \ | ||
tax_microdata_benchmarking/utils/reweight.py \ | ||
tax_microdata_benchmarking/utils/trace.py \ | ||
tax_microdata_benchmarking/create_taxcalc_input_variables.py | ||
python tax_microdata_benchmarking/create_taxcalc_input_variables.py | ||
|
||
tax_microdata_benchmarking/storage/output/tmd_growfactors.csv: \ | ||
tax_microdata_benchmarking/storage/input/puf_growfactors.csv \ | ||
tax_microdata_benchmarking/create_taxcalc_growth_factors.py | ||
python tax_microdata_benchmarking/create_taxcalc_growth_factors.py | ||
|
||
tax_microdata_benchmarking/storage/output/tmd_weights.csv.gz: \ | ||
tax_microdata_benchmarking/storage/input/cbo_population_forecast.yaml \ | ||
tax_microdata_benchmarking/storage/output/tmd.csv.gz \ | ||
tax_microdata_benchmarking/create_taxcalc_sampling_weights.py | ||
python tax_microdata_benchmarking/create_taxcalc_sampling_weights.py | ||
|
||
data: install flat-file test | ||
.PHONY=tmd_files | ||
tmd_files: tax_microdata_benchmarking/storage/output/tmd.csv.gz \ | ||
tax_microdata_benchmarking/storage/output/tmd_growfactors.csv \ | ||
tax_microdata_benchmarking/storage/output/tmd_weights.csv.gz | ||
|
||
.PHONY=test | ||
test: tmd_files | ||
pytest . -v | ||
|
||
.PHONY=data | ||
data: install tmd_files test | ||
|
||
.PHONY=format | ||
format: | ||
black . -l 79 | ||
|
||
.PHONY=documentation | ||
documentation: | ||
jb build docs/book | ||
|
||
.PHONY=reweighting-visualisation | ||
reweighting-visualisation: | ||
tensorboard --logdir=tax_microdata_benchmarking/storage/output/reweighting | ||
|
||
tax-expenditures-report: flat-file | ||
.PHONY=tax-expenditures-report | ||
tax-expenditures-report: tmd_files | ||
-pytest . --disable-warnings -m taxexp | ||
diff tax_microdata_benchmarking/storage/output/tax_expenditures \ | ||
tax_microdata_benchmarking/examination/tax_expenditures |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters