Skip to content

Commit

Permalink
Merge pull request #662 from cmu-delphi/ndefries/sprinkle-gc-get-fore…
Browse files Browse the repository at this point in the history
…casts

Call `gc` during `_alt` forecast download function used for forecast eval pipeline
  • Loading branch information
dshemetov authored Sep 28, 2023
2 parents 1e09e47 + 6a977f7 commit fdbbb69
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R-packages/evalcast/R/get_covidhub_predictions.R
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,9 @@ get_forecaster_predictions_alt <- function(covidhub_forecaster_name,
pcards <- filter(pcards, .data$signal %chin% !!signal)
class(pcards) = c("predictions_cards", class(pcards))

# Try to free memory
invisible(gc())

return(pcards)
}

Expand Down

0 comments on commit fdbbb69

Please sign in to comment.