Skip to content

Commit

Permalink
interpret(): use core_thresh
Browse files Browse the repository at this point in the history
  • Loading branch information
brownag committed May 15, 2024
1 parent d6c0e8b commit 8194574
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/interpret.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ setMethod("interpret", signature = c("Node", "SpatRaster"),
nrows = nrow(propdata) / (terra::ncell(propdata) / core_thresh),
overwrite = TRUE,
...) {
.interpretRast(x, propdata, cores = cores, core_thresh = 25000, ...)
.interpretRast(x, propdata, cores = cores, core_thresh = core_thresh, ...)
})

setMethod("interpret", signature = c("character", "SpatRaster"),
Expand All @@ -77,7 +77,7 @@ setMethod("interpret", signature = c("character", "SpatRaster"),
overwrite = TRUE,
...) {
r <- initRuleset(x)
.interpretRast(r, propdata, cores = cores, core_thresh = 25000, ...)
.interpretRast(r, propdata, cores = cores, core_thresh = core_thresh, ...)
})

# workhorse data.frame method
Expand Down

0 comments on commit 8194574

Please sign in to comment.