Skip to content

Commit

Permalink
Start with robust files selection
Browse files Browse the repository at this point in the history
  • Loading branch information
mzarowka committed Mar 1, 2024
1 parent a51f5df commit f8b078e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/workflow.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ prepare_core <- function(core = NULL, path = NULL, layers = NULL, extent = NULL,
# Get path
extent <- core$cropImage
} else if (extent == "capture") {
extent <- terra::rast(files[[2]]) |>
extent <- terra::rast(fs::path_filter(files, regexp = "WHITE|DARK", invert = TRUE)) |>
terra::ext()
}

Expand Down

0 comments on commit f8b078e

Please sign in to comment.