Skip to content

Commit

Permalink
Update R/segments.R
Browse files Browse the repository at this point in the history
Co-authored-by: Claudiu Forgaci <[email protected]>
  • Loading branch information
fnattino and cforgaci authored Dec 19, 2024
1 parent 8b70481 commit 760b0bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/segments.R
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ refine_segments <- function(blocks, river_centerline, corridor) {
idx[!idx %in% idx_instersect_river]
}
while (TRUE) {
idx_not_instersects_river <- not_intersect_river(blocks)
idx_not_instersects_river <- not_intersect_river(blocks = blocks)
if (length(idx_not_instersects_river) == 0) break
blocks <- merge_blocks(blocks, idx_not_instersects_river,
method = "longest-intersection")
Expand Down

0 comments on commit 760b0bb

Please sign in to comment.