Skip to content

Commit

Permalink
Merge pull request #1 from PESchoenberg/develop
Browse files Browse the repository at this point in the history
Improved info.
  • Loading branch information
PESchoenberg authored Nov 13, 2019
2 parents 82de564 + 650a95e commit 0a2a473
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
Binary file modified data/jcp_inm.db
Binary file not shown.
Binary file modified doc/Jcp_Inm.odt
Binary file not shown.
Binary file modified doc/Jcp_Inm.pdf
Binary file not shown.
12 changes: 7 additions & 5 deletions src/scheme/jcp_inm.scm
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
(use-modules (grsp grsp0))


; Vars
; Vars. Change the path(s) to your installation.
(define mc 0)
(define sqlp-path "/home/pablo/Programs/C++/sqlp/sqlp")
(define database "/home/pablo/Datasets/Jcp_Inm/data/jcp_inm.db")
Expand Down Expand Up @@ -83,7 +83,7 @@
res))


; mult-adr - construct a block addres based on a choice.
; mult-adr - Construct a block addres based on a choice.
;
; Arguments
; - p_n: number.
Expand All @@ -97,6 +97,9 @@
res))


; asl-street-number - Establish the street block number to which a measurement
; belongs
;
(define (ask-street-number)
(let ((res 0)
(mc 0))
Expand Down Expand Up @@ -145,7 +148,7 @@
res))


; ask-street-abr presents a menu with the various street name abbreviations.
; ask-street-abr - Presents a menu with the various street name abbreviations.
;
(define (ask-street-abr)
(let ((res "")
Expand Down Expand Up @@ -234,7 +237,7 @@
res))


; write-prep-sql - overwrites the contents of prep.sql with the values
; write-prep-sql - Overwrites the contents of prep.sql with the values
; conmtained in the arguments.
;
; Arguments:
Expand Down Expand Up @@ -294,7 +297,6 @@
0))))



; run-prep-sql - Runs the existing prep.sql.
;
(define (run-prep-sql)
Expand Down
6 changes: 3 additions & 3 deletions src/sql/prep.sql
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
UPDATE trf_pers SET Status = 'enabled' WHERE Status IS NULL;
UPDATE trf_pers SET Context = 'center' WHERE Context IS NULL;
UPDATE trf_pers SET Hr = 10 WHERE Hr IS NULL;
UPDATE trf_pers SET Dayn = 12 WHERE Dayn IS NULL;
UPDATE trf_pers SET Dayw = 'Tue' WHERE Dayw IS NULL;
UPDATE trf_pers SET Hr = 11 WHERE Hr IS NULL;
UPDATE trf_pers SET Dayn = 13 WHERE Dayn IS NULL;
UPDATE trf_pers SET Dayw = 'Wed' WHERE Dayw IS NULL;
UPDATE trf_pers SET Monthn = 11 WHERE Monthn IS NULL;
UPDATE trf_pers SET Year = 2019 WHERE Year IS NULL;

0 comments on commit 0a2a473

Please sign in to comment.