Skip to content

Commit

Permalink
integrity check should not rely on metadata, in case metadata are cor…
Browse files Browse the repository at this point in the history
…rupt/missing #137
  • Loading branch information
brownag committed Jul 8, 2020
1 parent 9802e7e commit 53c13df
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/SoilProfileCollection-integrity.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ spc_in_sync <- function(object) {
two <- ifelse(one, all(sid == cohid), FALSE)

# check 3: horizon IDs are in order of profile ID in site
# and, within profiles, have correct top-depth sequence
three <- all(cohzid[metadata(object)$target.order] == cohzid)
three <- all(.coalesce.idx(match(hid, sid)) == 1:length(sid))

return(data.frame(siteDepth = one,
relativeOrder = two,
Expand Down

0 comments on commit 53c13df

Please sign in to comment.