Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/EOGrady21/vprr
Browse files Browse the repository at this point in the history
  • Loading branch information
EOGrady21 committed Dec 12, 2024
2 parents e794bd2 + c76d167 commit 2b14b85
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion R/EC_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,19 @@ read_aid_cnn <- function(aid_file) {
#' @export
#'
aid_table <- read.table(aid_file, sep = " ")
names(aid_table) <- c('roi', 'confidence')

if(ncol(aid_table) == 1) {

names(aid_table) <- c('roi')

} else {

names(aid_table) <- c('roi', 'confidence')

}

return(aid_table)

}

vpr_pred_read <- function(filename) {
Expand Down

0 comments on commit 2b14b85

Please sign in to comment.