Skip to content

Commit

Permalink
adjust condense size
Browse files Browse the repository at this point in the history
  • Loading branch information
mitokic committed Jul 25, 2024
1 parent e79a10d commit 31f60ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/final_models.R
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ final_models <- function(run_info,
par_end(cl)

# condense outputs into less files for larger runs
if(length(combo_list) > 100) {
if(length(combo_list) > 10000) {
cli::cli_progress_step("Condensing Forecasts")

condense_data(run_info,
Expand Down
2 changes: 1 addition & 1 deletion R/read_write_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ condense_data <- function(run_info,
list_of_batches <- list()

# Define the batch size
batch_size <- 100
batch_size <- 10000

# Calculate the number of batches needed
num_batches <- ceiling(length(initial_file_list) / batch_size)
Expand Down

0 comments on commit 31f60ba

Please sign in to comment.