Skip to content

Move existing functions from experiments/ to src/ #1610

@juliasloan25

Description

@juliasloan25

We should minimize the code that's in experiments/ and instead have the bulk of our package in src/. For now we'll skip the component models, since that will be a large change on its own.

Files/functions to move now

Checkpointer module: #1612

  • experiments/ClimaEarth/components/shared/restore.jl --> Checkpointer

Input module: #1613

  • experiments/ClimaEarth/user_io/arg_parsing.jl --> Input
  • experiments/ClimaEarth/cli_options.jl -> Input

Postprocessor module

  • experiments/ClimaEarth/user_io/coupler_diagnostics.jl --> Postprocessor
  • experiments/ClimaEarth/user_io/benchmarks.jl --> Postprocessor

I'm not sure what to do with these two because they depend on functions that will be in the plotting extension:

  • experiments/ClimaEarth/user_io/postprocessing.jl --> Postprocessor
  • experiments/ClimaEarth/setup_run.jl: postprocess(cs) --> Postprocessor

Plotting extension

  • experiments/ClimaEarth/user_io/diagnostics_plots.jl
  • experiments/ClimaEarth/user_io/debug_plots.jl
  • experiments/ClimaEarth/leaderboard/
    • data_sources.jl mostly dependent on component model-specific diagnostic names, but I think this is okay
    • maybe this should go in its own extension?

SimCoordinator module (name?)

  • experiments/ClimaEarth/setup_run.jl: run!(cs), step!(cs) --> SimCoordinator

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions