Skip to content

Commit 06b78e0

Browse files
author
Dongchen Zhang
committed
Revert change.
1 parent 3d4af80 commit 06b78e0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/uncertainty/R/generate_joint_ensemble_design.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,26 +34,26 @@ generate_joint_ensemble_design <- function(settings,
3434
unlist()
3535
]
3636
samp.ordered <- samp[c(order, names(samp)[!(names(samp) %in% order)])]
37-
37+
3838
# loop over inputs.
3939
for (i in seq_along(samp.ordered)) {
4040
input_tag <- names(samp.ordered)[i]
4141
parent_name <- samp.ordered[[i]]$parent
42-
42+
4343
parent_ids <- if (!is.null(parent_name)) {
4444
sampled_inputs[[parent_name]]
4545
} else {
4646
NULL
4747
}
48-
48+
4949
input_result <- PEcAn.uncertainty::input.ens.gen(
5050
settings = settings,
5151
ensemble_size = ensemble_size,
5252
input = input_tag,
5353
method = samp.ordered[[i]]$method,
5454
parent_ids = parent_ids
5555
)
56-
56+
5757
sampled_inputs[[input_tag]] <- input_result$ids
5858
design_list[[input_tag]] <- input_result$ids
5959
}
@@ -70,7 +70,7 @@ generate_joint_ensemble_design <- function(settings,
7070
# parameters with replacement.
7171
design_list[["param"]] <- seq_len(ensemble_size)
7272
design_matrix <- data.frame(design_list)
73-
73+
7474
if (sobol) {
7575
half <- floor(ensemble_size / 2)
7676
X1 <- design_matrix[1:half, ]

0 commit comments

Comments
 (0)