Skip to content

Commit 5fe2d6c

Browse files
committed
equipement->equipment and retrival->retrieval
GeoPressure/GeoPressureR#45
1 parent 0ecdcf4 commit 5fe2d6c

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

analysis/4-basic-graph.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ g <- graph_from_data_frame(data.frame(
4242
weight = -log(grl$p)
4343
))
4444

45-
retrival <- which.max(as.matrix(static_prob_marginal[[length(static_prob_marginal)]])) + grl$sz[1] * grl$sz[2] * (grl$sz[3] - 1)
46-
stopifnot(retrival %in% grl$retrival)
47-
sp <- shortest_paths(g, from = paste(grl$equipement), to = paste(retrival))
45+
retrieval <- which.max(as.matrix(static_prob_marginal[[length(static_prob_marginal)]])) + grl$sz[1] * grl$sz[2] * (grl$sz[3] - 1)
46+
stopifnot(retrieval %in% grl$retrieval)
47+
sp <- shortest_paths(g, from = paste(grl$equipment), to = paste(retrieval))
4848

4949
# Convert igraph representation to lat-lon
5050
shortest_path <- graph_path2lonlat(as.numeric(sp$vpath[[1]]$name), grl)

analysis/5-3-wind-graph_analyse.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ g <- graph_from_data_frame(data.frame(
4040
weight = -log(grl$p)
4141
))
4242

43-
retrival <- which.max(as.matrix(static_prob_marginal[[length(static_prob_marginal)]])) + grl$sz[1] * grl$sz[2] * (grl$sz[3] - 1)
44-
stopifnot(retrival %in% grl$retrival)
45-
sp <- shortest_paths(g, from = paste(grl$equipement), to = paste(retrival))
43+
retrieval <- which.max(as.matrix(static_prob_marginal[[length(static_prob_marginal)]])) + grl$sz[1] * grl$sz[2] * (grl$sz[3] - 1)
44+
stopifnot(retrieval %in% grl$retrieval)
45+
sp <- shortest_paths(g, from = paste(grl$equipment), to = paste(retrieval))
4646

4747
# Convert igraph representation to lat-lon
4848
shortest_path <- graph_path2lonlat(as.numeric(sp$vpath[[1]]$name), grl)

reports/make_reports.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ for (report in report_list) {
3535
str <- paste0(str, '- text: "', report, '"\n menu:\n')
3636
for (gdl in gdl_list) {
3737
str <- paste0(str, ' - text: "', gdl, '"\n')
38-
str <- paste0(str, ' href: "/GeoPressureTemplate/', report, "/", gdl, '.html\n"')
38+
str <- paste0(str, ' href: "/GeoPressureTemplate/', report, '/', gdl, '.html"\n')
3939
}
4040
}
4141
writeLines(str)

0 commit comments

Comments
 (0)