Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interpret config file/args as relative to pkg_dir #1133

Closed
wants to merge 1 commit into from

Conversation

imreddyTeja
Copy link
Contributor

Purpose

This addressed the "make sure output dir doesn't end up being experiments/ClimaEarth/experiments/ClimaEarth/... when run from exp/ClimaEarth/ directory" point from issue #1122

To-do

  • improve the cli help strings to make it clear the way paths are interpreted

Content

Interpret the config file path as relative to the
ClimaCoupler.jl package. Do the same for the restart_dir and coupler_output_dir in the config.

This enables run_amip to also be run from
experiments/ClimaEarth with the default config path and without modifying the usual output path.


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

Interpret the config file path as relative to the
ClimaCOupler.jl package. Do the same for the restart_dir and
coupler_output_dir in the config.

This enables `run_amip` to also be run from
`experiments/ClimaEarth` with the default config path
and without modifying the usual output path.
@@ -139,7 +139,7 @@ postprocessing and the conservation checks) of the simulation will be saved,
#and `dir_paths.checkpoints`, where restart files are saved.
=#

COUPLER_OUTPUT_DIR = joinpath(output_dir_root, job_id)
COUPLER_OUTPUT_DIR = joinpath(pkg_dir, output_dir_root, job_id)
Copy link
Member

Choose a reason for hiding this comment

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

I don't think it should not be relative to pkg_dir. pkg_dir could be inside the .julia in the user's home directory. This is a hidden folder, with possibly storage quotas. It is not a great place where to save files.

@imreddyTeja imreddyTeja closed this Jan 2, 2025
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.

2 participants