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

Further enhance/clarify setup_run_directory #137

Merged
merged 3 commits into from
Apr 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions regional_mom6/regional_mom6.py
Original file line number Diff line number Diff line change
Expand Up @@ -1325,8 +1325,8 @@ def setup_run_directory(
Args:
regional_mom6_path (str): Path to the regional MOM6 source code that was cloned
from GitHub. Default is current path, ``'.'``.
surface_forcing (Optional[str, bool]): Specify the choice of surface forcing, one
of: ``'jra'`` or ``'era5'``. If left blank, constant fluxes will be used.
surface_forcing (Optional[str]): Specify the choice of surface forcing, one
of: ``'jra'`` or ``'era5'``. If not prescribed then constant fluxes are used.
navidcy marked this conversation as resolved.
Show resolved Hide resolved
using_payu (Optional[bool]): Whether or not to use payu (https://github.com/payu-org/payu)
to run the model. If ``True``, a payu configuration file will be created.
Default: ``False``.
Expand All @@ -1346,7 +1346,7 @@ def setup_run_directory(
raise ValueError(
f"Cannot find the premade run directory files at \n{premade_rundir_path}\n. Something is not right about how the package has been installed as these files are missing!"
)
if type(surface_forcing) == str:
if surface_forcing:
overwrite_run_dir = premade_rundir_path / f"{surface_forcing}_surface"
if not overwrite_run_dir.exists():
available = [x for x in premade_rundir_path.iterdir() if x.is_dir()]
Expand Down
Loading