From 7c447cba3fa5faa6787e341b9087e3a2bbcd898b Mon Sep 17 00:00:00 2001 From: Quan Le Date: Tue, 24 Jan 2017 16:20:30 -0800 Subject: [PATCH] gslab-python/#28 template formatting PR response --- .sconsign.dblite | Bin 6568 -> 6568 bytes output/analysis/sconscript.log | 6 +- output/data/sconscript.log | 10 +- output/paper/online_appendix.pdf | Bin 51676 -> 51676 bytes output/paper/paper.pdf | Bin 58457 -> 58457 bytes output/paper/sconscript.log | 4 +- sconstruct.log | 259 +++++++++++++++++++++++++++++++ source/analysis/SConscript | 2 +- 8 files changed, 269 insertions(+), 12 deletions(-) diff --git a/.sconsign.dblite b/.sconsign.dblite index 45c8bd98c13b27c5c7d40371d840b6e703fa478c..3319f8e4757307c5fe5a9de2411542810ed5903b 100644 GIT binary patch delta 284 zcmX|+yGjE=7=>A9)wr^Ymj^ItVH0F#{`|8uk05EZ2w2$6)ufEu`2r%?P3IG&5du@_ zbBL{0R(XnyLDL-$eCINUIV?^HA1ohlCcC4pacR5h-K-w>Ljcqkg#_)jLN6$)maCwt zLuwd{*W|l8|HCGAysFO9ZMk0zE;e2ckt{eFz#A}v3d)@{RD+UEB3O?pZod-Feu>_u zyvZCI3sx(Tj6w*8S*Mj?Fmy^d5q!Mg`y{zMT~>~)#iA|?a+;mD=3_15^TAi&fU~;w os3;wBE%O}IXwf=`7FuP}(_vQ}Er0&cchd(yt4HstIeyt$0XxuG`v3p{ delta 284 zcmX|+yGjE=7=>A9y{*jRrHJ!_Mr%!!Ody)39)49hNlD$W>2P<>xxY*W>RBjABN# o0;GdlIcY31G+qS6enx=wa?)j|zwh(S`EEM*GdfzO^6YKz4-7|9R{#J2 diff --git a/output/analysis/sconscript.log b/output/analysis/sconscript.log index 9a67fea..d5c0580 100644 --- a/output/analysis/sconscript.log +++ b/output/analysis/sconscript.log @@ -1,11 +1,11 @@ -*** Builder log created: 2017-01-19 11:02:37 -*** Builder log completed: 2017-01-19 11:02:38 +*** Builder log created: 2017-01-24 15:58:26 +*** Builder log completed: 2017-01-24 15:58:31 ___ ____ ____ ____ ____ (R) /__ / ____/ / ____/ -___/ / /___/ / /___/ 14.1 Copyright 1985-2015 StataCorp LP +___/ / /___/ / /___/ 14.2 Copyright 1985-2015 StataCorp LP Statistics/Data Analysis StataCorp 4905 Lakeway Drive MP - Parallel Edition College Station, Texas 77845 USA diff --git a/output/data/sconscript.log b/output/data/sconscript.log index c465203..371eb70 100644 --- a/output/data/sconscript.log +++ b/output/data/sconscript.log @@ -1,9 +1,9 @@ -*** Builder log created: 2017-01-19 11:02:37 -*** Builder log completed: 2017-01-19 11:02:37 +*** Builder log created: 2017-01-24 15:58:25 +*** Builder log completed: 2017-01-24 15:58:26 -R version 3.3.0 (2016-05-03) -- "Supposedly Educational" +R version 3.3.2 (2016-10-31) -- "Sincere Pumpkin Patch" Copyright (C) 2016 The R Foundation for Statistical Computing Platform: x86_64-apple-darwin13.4.0 (64-bit) @@ -21,8 +21,6 @@ Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. -[Previously saved workspace restored] - > main <- function(){ + x <- seq(-10, 10, 0.1) + write.table(x, "output/data/data.txt", sep = "|", row.names = FALSE, col.names = FALSE) @@ -32,4 +30,4 @@ Type 'q()' to quit R. > > proc.time() user system elapsed - 0.105 0.022 0.133 + 0.111 0.024 0.143 diff --git a/output/paper/online_appendix.pdf b/output/paper/online_appendix.pdf index b1f312f06e18b8e26e5fcfcdf90876f560c65bf8..fbfb2c89f4e082d5e97031f1e6a492b2ab03d86f 100644 GIT binary patch delta 108 zcmcaJnfcCS<_)R`IgCsUO-(I~O(*Lfl!kLQ2OKPCcQ$phFtRYWbhL0YG<0)uH8V6c bFf=hWGqH5BaB(s+GO<&zA*5t7*U3u&d~F=? delta 108 zcmcaJnfcCS<_)R`ISefg4GoNpEhp<9l!kLQ2OKPCcQ$h|H8C}GG&V4BGIMotHZU-E bGqf~wF)%WG diff --git a/output/paper/sconscript.log b/output/paper/sconscript.log index a887731..484ee1a 100644 --- a/output/paper/sconscript.log +++ b/output/paper/sconscript.log @@ -1,6 +1,6 @@ -*** Builder log created: 2017-01-19 11:02:39 -*** Builder log completed: 2017-01-19 11:02:40 +*** Builder log created: 2017-01-24 15:58:36 +*** Builder log completed: 2017-01-24 15:58:38 This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex) restricted \write18 enabled. diff --git a/sconstruct.log b/sconstruct.log index 21e6f4b..a3c3769 100644 --- a/sconstruct.log +++ b/sconstruct.log @@ -307,3 +307,262 @@ build_lyx(["output/paper/online_appendix.pdf"], ["source/paper/online_appendix.l build_lyx(["output/paper/paper.pdf"], ["source/paper/paper.lyx"]) build_lyx(["output/talk/slides.pdf"], ["source/talk/slides.lyx"]) scons: done building targets. + +*** New build: 2017-01-20 14:12:25 *** +^^^ New build: 2017-01-20 14:12:25 ^^^ +scons: done reading SConscript files. +scons: Building targets ... +scons: `output' is up to date. +scons: done building targets. + +*** New build: 2017-01-20 14:12:41 *** +^^^ New build: 2017-01-20 14:12:41 ^^^ +scons: done reading SConscript files. +scons: Building targets ... +scons: Nothing to be done for `source/data/SConscript'. +scons: done building targets. + +*** New build: 2017-01-20 14:13:17 *** +^^^ New build: 2017-01-20 14:13:17 ^^^ +scons: done reading SConscript files. +scons: Building targets ... +scons: `.' is up to date. +scons: done building targets. + +*** New build: 2017-01-20 14:13:24 *** +^^^ New build: 2017-01-20 14:13:24 ^^^ +scons: done reading SConscript files. +scons: Building targets ... +scons: Nothing to be done for `source/data/SConscript'. +scons: done building targets. + +*** New build: 2017-01-20 14:13:31 *** +^^^ New build: 2017-01-20 14:13:31 ^^^ +scons: done reading SConscript files. +scons: Building targets ... +scons: Nothing to be done for `source/data/SConscript'. +scons: done building targets. + +*** New build: 2017-01-20 14:34:37 *** +*** Builder log created: 2017-01-20 14:34:37 +*** Builder log completed: 2017-01-20 14:34:38 + + +R version 3.3.0 (2016-05-03) -- "Supposedly Educational" +Copyright (C) 2016 The R Foundation for Statistical Computing +Platform: x86_64-apple-darwin13.4.0 (64-bit) + +R is free software and comes with ABSOLUTELY NO WARRANTY. +You are welcome to redistribute it under certain conditions. +Type 'license()' or 'licence()' for distribution details. + + Natural language support but running in an English locale + +R is a collaborative project with many contributors. +Type 'contributors()' for more information and +'citation()' on how to cite R or R packages in publications. + +Type 'demo()' for some demos, 'help()' for on-line help, or +'help.start()' for an HTML browser interface to help. +Type 'q()' to quit R. + +[Previously saved workspace restored] + +> main <- function(){ ++ x <- seq(-10, 10, 0.1) ++ write.table(x, "output/data/data.txt", sep = "|", row.names = FALSE, col.names = FALSE) ++ } +> +> main() +> +> proc.time() + user system elapsed + 0.117 0.033 0.523 + +^^^ New build: 2017-01-20 14:34:37 ^^^ +scons: done reading SConscript files. +scons: Building targets ... +build_r(["output/data/data.txt"], ["source/data/build.R"]) +scons: done building targets. + +*** New build: 2017-01-24 15:58:06 *** +*** Builder log created: 2017-01-24 15:58:07 +*** Builder log completed: 2017-01-24 15:58:08 + + +R version 3.3.2 (2016-10-31) -- "Sincere Pumpkin Patch" +Copyright (C) 2016 The R Foundation for Statistical Computing +Platform: x86_64-apple-darwin13.4.0 (64-bit) + +R is free software and comes with ABSOLUTELY NO WARRANTY. +You are welcome to redistribute it under certain conditions. +Type 'license()' or 'licence()' for distribution details. + + Natural language support but running in an English locale + +R is a collaborative project with many contributors. +Type 'contributors()' for more information and +'citation()' on how to cite R or R packages in publications. + +Type 'demo()' for some demos, 'help()' for on-line help, or +'help.start()' for an HTML browser interface to help. +Type 'q()' to quit R. + +> main <- function(){ ++ x <- seq(-10, 10, 0.1) ++ write.table(x, "output/data/data.txt", sep = "|", row.names = FALSE, col.names = FALSE) ++ } +> +> main() +> +> proc.time() + user system elapsed + 0.118 0.038 0.648 + +^^^ New build: 2017-01-24 15:58:06 ^^^ +scons: done reading SConscript files. +scons: Building targets ... +build_r(["output/data/data.txt"], ["source/data/build.R"]) +scons: done building targets. + +*** New build: 2017-01-24 15:58:25 *** +*** Builder log created: 2017-01-24 15:58:25 +*** Builder log completed: 2017-01-24 15:58:26 + + +R version 3.3.2 (2016-10-31) -- "Sincere Pumpkin Patch" +Copyright (C) 2016 The R Foundation for Statistical Computing +Platform: x86_64-apple-darwin13.4.0 (64-bit) + +R is free software and comes with ABSOLUTELY NO WARRANTY. +You are welcome to redistribute it under certain conditions. +Type 'license()' or 'licence()' for distribution details. + + Natural language support but running in an English locale + +R is a collaborative project with many contributors. +Type 'contributors()' for more information and +'citation()' on how to cite R or R packages in publications. + +Type 'demo()' for some demos, 'help()' for on-line help, or +'help.start()' for an HTML browser interface to help. +Type 'q()' to quit R. + +> main <- function(){ ++ x <- seq(-10, 10, 0.1) ++ write.table(x, "output/data/data.txt", sep = "|", row.names = FALSE, col.names = FALSE) ++ } +> +> main() +> +> proc.time() + user system elapsed + 0.111 0.024 0.143 + +*** Builder log created: 2017-01-24 15:58:26 +*** Builder log completed: 2017-01-24 15:58:31 + + + ___ ____ ____ ____ ____ (R) + /__ / ____/ / ____/ +___/ / /___/ / /___/ 14.2 Copyright 1985-2015 StataCorp LP + Statistics/Data Analysis StataCorp + 4905 Lakeway Drive + MP - Parallel Edition College Station, Texas 77845 USA + 800-STATA-PC http://www.stata.com + 979-696-4600 stata@stata.com + 979-696-4601 (fax) + +Unlimited-user 4-core Stata network license expires 21 Jul 2017: + Serial number: 501409012939 + Licensed to: Quan Le + Stanford University + +Notes: + 1. Stata is running in batch mode. + 2. Unicode is supported; see help unicode_advice. + 3. More than 2 billion observations are allowed; see help obs_advice. + 4. Maximum number of variables is set to 5000; see help set_maxvar. + +. do "source/analysis/analysis.do" + +. program main + 1. import delimited "output/data/data.txt", delimiter("|") varnames(nonam +> es) clear + 2. rename v1 obs_value + 3. gen obs_number = _n + 4. graph twoway line obs_value obs_number + 5. graph export "output/analysis/plot.eps" + 6. end + +. +. main +(1 var, 201 obs) +(file output/analysis/plot.eps written in EPS format) + +. +end of do-file + +*** Builder log created: 2017-01-24 15:58:31 +*** Builder log completed: 2017-01-24 15:58:36 + +This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex) + restricted \write18 enabled. +entering extended mode +(./online_appendix.tex +LaTeX2e <2016/03/31> +Babel <3.9r> and hyphenation patterns for 83 language(s) loaded. + +This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex) + restricted \write18 enabled. +entering extended mode +(./online_appendix.tex +LaTeX2e <2016/03/31> +Babel <3.9r> and hyphenation patterns for 83 language(s) loaded. + + +*** Builder log created: 2017-01-24 15:58:36 +*** Builder log completed: 2017-01-24 15:58:38 + +This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex) + restricted \write18 enabled. +entering extended mode +(./paper.tex +LaTeX2e <2016/03/31> +Babel <3.9r> and hyphenation patterns for 83 language(s) loaded. + +This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex) + restricted \write18 enabled. +entering extended mode +(./paper.tex +LaTeX2e <2016/03/31> +Babel <3.9r> and hyphenation patterns for 83 language(s) loaded. + + +*** Builder log created: 2017-01-24 15:58:38 +*** Builder log completed: 2017-01-24 15:58:41 + +This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex) + restricted \write18 enabled. +entering extended mode +(./slides.tex +LaTeX2e <2016/03/31> +Babel <3.9r> and hyphenation patterns for 83 language(s) loaded. + +This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex) + restricted \write18 enabled. +entering extended mode +(./slides.tex +LaTeX2e <2016/03/31> +Babel <3.9r> and hyphenation patterns for 83 language(s) loaded. + + +^^^ New build: 2017-01-24 15:58:25 ^^^ +scons: done reading SConscript files. +scons: Building targets ... +build_r(["output/data/data.txt"], ["source/data/build.R"]) +build_stata(["output/analysis/plot.eps"], ["source/analysis/analysis.do"]) +build_lyx(["output/paper/online_appendix.pdf"], ["source/paper/online_appendix.lyx"]) +build_lyx(["output/paper/paper.pdf"], ["source/paper/paper.lyx"]) +build_lyx(["output/talk/slides.pdf"], ["source/talk/slides.lyx"]) +scons: done building targets. diff --git a/source/analysis/SConscript b/source/analysis/SConscript index 7e46e63..fe24c9d 100644 --- a/source/analysis/SConscript +++ b/source/analysis/SConscript @@ -4,4 +4,4 @@ target = '#output/analysis/plot.eps' source = '#source/analysis/analysis.do' assets = '#output/data/data.txt' env.Depends(target, assets) -env.Stata(target, source) \ No newline at end of file +env.Stata(target, source)