Skip to content

Conversation

@juliasloan25
Copy link
Member

@juliasloan25 juliasloan25 commented Dec 11, 2025

Purpose

restore! is a function used to restart caches. This PR moves it out of experiments/ and into the Checkpointer module. This is the first step of a larger effort to move code out of experiments and into src.

See #1610 for a list of other files/functions to move in other PRs.

Content

  • move restore! into the Checkpointer module
  • remove experiments/ClimaEarth/shared/ folder and contents
  • update function calls to qualify with Checkpointer.
  • update docstrings to be more descriptive
  • add to Checkpointer API docs
  • add tests
  • verify buildkite results are unchanged

  • I have read and checked the items on the review checklist.

Comment on lines +37 to +38
dir = "test_checkpoint"
mkpath(dir)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to make a temporary directory with mktempdir, so that it is automatically removed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants