Skip to content

Commit

Permalink
Merge pull request #223 from worldbank/v2.1
Browse files Browse the repository at this point in the history
V2.1
  • Loading branch information
luizaandrade authored Feb 14, 2022
2 parents c29a43d + d7b1757 commit 641253c
Show file tree
Hide file tree
Showing 52 changed files with 1,075 additions and 260 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
# Stata
!/**/*.do
!/**/*.ado
!/**/*.dta

# R
!/**/*.R
Expand All @@ -67,5 +68,5 @@
# Julia
!/**/*.jl

#Ignore test folder
test/
# Binary files used for run tests
!/run/output/**/*.xlsx
17 changes: 7 additions & 10 deletions run/Master.do
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@ qui {
*******************************************************************************/

* Set root paths
if inlist(c(username), "WB501238", "wb50123") {
if inlist(c(username), "WB501238", "wb501238") {
global GitHub "C:\Users\wb501238\Documents\GitHub"
global AnalyticsDB "C:\Users\wb501238\Dropbox\WB\Analytics\DIME Analytics"
}

* Set up folder globals
global iefieldkit "${GitHub}/iefieldkit"
global output "${iefieldkit}/run/output"
global form "${AnalyticsDB}/Data Coordinator/iefieldkit/ietestform"
global codebook "${AnalyticsDB}/Data Coordinator/iefieldkit/iecodebook"
global testouput "${iefieldkit}/run/output"
global codebook "${iefieldkit}/run/output/iecodebook"

* Select commands to test
local ieduplicates 0
local iecompdup 0
local ietestform 0
local ieduplicates 1
local iecompdup 1
local ietestform 1
local iecodebook 1
local iefieldkit 0
local iefieldkit 1

/*******************************************************************************
Part II: Test inputs
Expand All @@ -46,9 +46,6 @@ qui {
exit
}

** Test if output folder exists, if not create it
mata : st_numscalar("r(dirExist)", direxists("${testouput}"))
if `r(dirExist)' == 0 mkdir "${testouput}"
}

/*******************************************************************************
Expand Down
Binary file added run/auto_data.dta
Binary file not shown.
Loading

0 comments on commit 641253c

Please sign in to comment.