Commit c4a5ff57 authored by Alison Beamish's avatar Alison Beamish
Browse files

Merge branch 'documentation' of...

Merge branch 'documentation' of git.gfz-potsdam.de:habitat-sampler/HabitatSampler into documentation
parents 972b76cd 6490d47d
Pipeline #22886 failed with stage
in 11 seconds
......@@ -157,8 +157,10 @@ sample_nb <- function(raster,
if (progress_bar) {
setTxtProgressBar(pb, k)
} else {
shiny::incProgress(1/(nb_mean + nrow(reference)),
detail = paste("Doing sampling", k))
shinybusy::update_modal_progress(
value = k / (nb_mean + nrow(reference)),
text = paste("Doing sampling for model", k)
)
}
}
}
......@@ -228,8 +230,10 @@ sample_nb <- function(raster,
}
m[l] <- max(dif[2,], na.rm = T)
if (!progress_bar) {
shiny::incProgress(1 / (nb_mean + nrow(reference)),
detail = paste("Doing prediction for class", jj))
shinybusy::update_modal_progress(
value = (nb_mean+jj) / (nb_mean + nrow(reference)),
text = paste("Doing prediction for class", jj)
)
}
}
index <- which.max(dif[2,])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment