Skip to content

Commit

Permalink
do not log-transform school dists in final return val of uta-export
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed May 16, 2023
1 parent 87fbc1b commit 7c612e4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: utaengine
Title: Routing and aggregation engine for 'Urban Transport Analyst'
Version: 0.1.0.167
Version: 0.1.0.168
Authors@R:
person(given = "Mark",
family = "Padgham",
Expand Down
4 changes: 0 additions & 4 deletions R/uta-batch.R
Original file line number Diff line number Diff line change
Expand Up @@ -342,10 +342,6 @@ uta_export <- function (city, results_path, soc = NULL, dlim = 10) {
# names (soc) [which (names (soc) == "bike_index")] <- "anti_bike"
# names (soc) [which (names (soc) == "natural")] <- "anti_nature"

# Log-transform school distances:
soc$school_dist [soc$school_dist < 1] <- 1 # 1 metre!
soc$school_dist <- log10 (soc$school_dist)

if ("soc_var" %in% names (soc)) {
names (soc) [which (names (soc) == "soc_var")] <- "social_index"
}
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"codeRepository": "https://github.com/UrbanAnalyst/uta-engine",
"issueTracker": "https://github.com/UrbanAnalyst/uta-engine/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.1.0.167",
"version": "0.1.0.168",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit 7c612e4

Please sign in to comment.