Skip to content

Commit

Permalink
Fix write seeds (#184)
Browse files Browse the repository at this point in the history
* no longer write out row names with forecast_random_seeds.csv

* also in validate function
  • Loading branch information
ChrisJones687 authored Oct 9, 2023
1 parent bfb05a8 commit 9aabb09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion R/pops_multirun.R
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ pops_multirun <- function(infected_file,

if (config$multiple_random_seeds && is.null(config$file_random_seeds) &&
dir.exists(config$output_folder_path)) {
write.csv(config$random_seeds, paste0(config$output_folder_path, "forecast_random_seeds.csv"))
write.csv(config$random_seeds, paste0(config$output_folder_path, "forecast_random_seeds.csv"),
row.names = FALSE)
}

config$crs <- terra::crs(config$host)
Expand Down
3 changes: 2 additions & 1 deletion R/validate.R
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ validate <- function(infected_years_file,

if (config$multiple_random_seeds && is.null(config$file_random_seeds) &&
dir.exists(config$output_folder_path)) {
write.csv(config$random_seeds, paste0(config$output_folder_path, "validation_random_seeds.csv"))
write.csv(config$random_seeds, paste0(config$output_folder_path, "validation_random_seeds.csv"),
row.names = FALSE)

}

Expand Down

0 comments on commit 9aabb09

Please sign in to comment.