Skip to content
Snippets Groups Projects
Commit d0b7c146 authored by Jannes Breier's avatar Jannes Breier
Browse files

fix bug in test on a windows machine

parent f2e55060
No related branches found
No related tags found
2 merge requests!6Merge reviewed package into main,!5Merge review_paper version to master
......@@ -495,7 +495,6 @@ read_calc_biocol <- function(
biocol_overtime / npp_pot_overtime
)
biocol_luc <- npp_potential - npp
# browser()
# biocol_luc2 <- (npp_potential - pftnpp_cft) * apply(cftfrac[, , -c(grass_bands, bp_bands)], c("cell", "year"), sum) +
# (npp_potential - pftnpp_grasslands) * apply(cftfrac[, , grass_bands], c("cell", "year"), sum) +
# (npp_potential - pftnpp_bioenergy) * apply(cftfrac[, , bp_bands], c("cell", "year"), sum)
......
......@@ -40,7 +40,7 @@ get_major_file_ext <- function(path) {
z = all_file_types
) %>%
na.omit()
browser()
# Detect actual LPJmL data type
types <- sapply(
files_to_check,
......
......@@ -83,7 +83,7 @@ test_that("test calc_biocal", {
# test for expected array dimensions
expect_true(
sapply(biocol, function(x) {
all(dim(x) == c(2, 517)) || all(dim(x) == c(2, 30) || all(dim(x) == NULL))
all(dim(x) == c(2, 516)) || all(dim(x) == c(2, 30)) || all(dim(x) == NULL)
}) %>%
all() %>%
suppressWarnings()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment