Skip to content

Commit

Permalink
Ignore tool_hash when comparing columns, since always different
Browse files Browse the repository at this point in the history
  • Loading branch information
cchristiansen committed Aug 3, 2023
1 parent fc7d225 commit 8880af4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions validation/validate_results.R
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ compare_dfs <- function(reference, test, event_name=NA){
# 1. check for new columns
ref_columns <- names(reference)
test_columns <- names(test)
# ignore tool_hash, since it will always be different
ref_columns <- ref_columns[!ref_columns %in% c("tool_hash")]
test_columns <- test_columns[!test_columns %in% c("tool_hash")]
column_diff <- difference_between_lists(ref_columns, test_columns)

if (length(column_diff$reference_only) > 0) {
Expand Down

0 comments on commit 8880af4

Please sign in to comment.