Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fireSense_ignitionPredict.R
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ stopIfStoredFitsProblem <- function(fits, covariates) {
if (!is.null(problem))
stop("fireSense_ignitionPredict: the stored ", fitProcesses[[process]], " fit of ELF ", f$elf,
" cannot predict these covariates: ", problem, ". Refit it (fireSense_ignitionFit `doFit = TRUE`) ",
"or choose a ledger made with these covariates (`fitFileSuffix`).", call. = FALSE)
"or name a ledger file made with these covariates (`ignitionFitFilename`).", call. = FALSE)
}
invisible(NULL)
}
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-multiELF.R
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ test_that("each ELF's pixels get that ELF's fitted year effect; an ELF without o
test_that("a stored fit with features the covariates lack stops, naming its ELF, process and the features", {
o <- multiInputs()
o$fireSense_EscapeFittedList$B$modelList$model$Fold1$features <- c("MDC", "nonexistentCov")
expect_error(toyIgRun(o), "escape fit of ELF B.*nonexistentCov.*doFit = TRUE.*fitFileSuffix")
expect_error(toyIgRun(o), "escape fit of ELF B.*nonexistentCov.*doFit = TRUE.*ignitionFitFilename")
o <- multiInputs()
o$fireSense_IgnitionFittedList$A$modelList$model$Fold1$features <- "gone"
expect_error(toyIgRun(o), "ignition fit of ELF A.*gone")
Expand Down
Loading