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
kevinsorochan committed Dec 18, 2024
2 parents b2da2af + a5e2957 commit ab57fa8
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 167 deletions.
7 changes: 4 additions & 3 deletions R/clf_check_test.R
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,8 @@ vpr_autoid_create <- function(reclassify, misclassified, basepath, day, hour, me
day_hour_re <- paste(day, hour, sep = ".")
recl_roi_gen <- unlist(vpr_roi(recl_roi))
if (length(unique(day_hour_re)) > 1) {
stop(paste(reclassify_category, "has more than one unique hour value!\n Please double check file."))
stop(paste(reclassify_category, "has more than one unique hour value!\n
Please double check file."))
}
recl_roi_df <- data.frame(recl_roi_gen, day_hour_re,
recl_roi, stringsAsFactors = FALSE)
Expand Down Expand Up @@ -608,7 +609,7 @@ vpr_autoid_create <- function(reclassify, misclassified, basepath, day, hour, me
dirpath <- file.path("new_autoid", category[[1]])
dir.create(dirpath, showWarnings = FALSE, recursive = TRUE)
if (mea == TRUE) {
aidMea_final_nm <- paste0("new_aid.mea.", unique(day_hour))
aidMea_final_nm <- paste0("new_aid.mea.", unique(day_hour), '.txt')
aidMea_final_fn <- file.path(dirpath, "aidmea",
aidMea_final_nm)
dir.create(file.path(category, "aidmea"), showWarnings = FALSE,
Expand All @@ -619,7 +620,7 @@ vpr_autoid_create <- function(reclassify, misclassified, basepath, day, hour, me
cat(paste(">>>> New aidmea file created for",
category, "in", unique(day_hour), "\n"))
}
aid_final_nm <- paste0("new_aid.", unique(day_hour))
aid_final_nm <- paste0("new_aid.", unique(day_hour), '.txt')
aid_final_fn <- file.path(dirpath, "aid", aid_final_nm)
dir.create(file.path(dirpath, "aid"), showWarnings = FALSE,
recursive = TRUE)
Expand Down
Loading

0 comments on commit ab57fa8

Please sign in to comment.