-
-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stop rerun of test if TAXSIM32 files exist
- Loading branch information
Showing
2 changed files
with
13 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
import os | ||
import glob | ||
import input_setup | ||
import main_comparison | ||
|
||
CUR_PATH = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
# setup input files | ||
input_setup.main() | ||
if not glob.glob(os.path.join(CUR_PATH, '*in.out-taxsim')): | ||
input_setup.main() | ||
|
||
# run taxcalc/taxsim comparison | ||
for assump_set in ('a', 'b', 'c'): | ||
for year in (18, 19): | ||
main_comparison.main(assump_set, year) | ||
|
||
# clean up auxillary files | ||
os.system('rm -f *.in* *.out*') | ||
# clean up all files except those retrieved from TAXSIM32 | ||
for file in CUR_PATH: | ||
for file in glob.glob('*.out*') and glob.glob('*.in*'): | ||
if not file.endswith('taxsim'): | ||
os.remove(file) |