-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Force garbage collection in benchmarking code
gcpy/benchmark.py gcpy/budget_ox.py gcpy/budget_tt.py gcpy/ste_flux.py - At the end of each method, manually delete the larger objects (such as xarray Datasets) and call gc.collect() to force garbage collection. This should hopefully prevent problems with the benchmark scripts halting due to exceeding requested memory (which seems to happen if all 1-year benchmark artifacts are requested). Signed-off-by: Bob Yantosca <[email protected]>
- Loading branch information
Showing
4 changed files
with
112 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters