Skip to content

Commit

Permalink
Revert back to reg
Browse files Browse the repository at this point in the history
  • Loading branch information
manishvenu committed Oct 16, 2024
1 parent 08caa9f commit a8b2dee
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions regional_mom6/regional_mom6.py
Original file line number Diff line number Diff line change
Expand Up @@ -2223,7 +2223,6 @@ def setup_run_directory(
overwrite=False,
with_tides=False,
boundaries=["south", "north", "west", "east"],
premade_rundir_path_arg=None,
):
"""
Set up the run directory for MOM6. Either copy a pre-made set of files, or modify
Expand All @@ -2241,14 +2240,11 @@ def setup_run_directory(
"""

## Get the path to the regional_mom package on this computer
if premade_rundir_path_arg is None:
premade_rundir_path = Path(
importlib.resources.files("regional_mom6")
/ "demos"
/ "premade_run_directories"
)
else:
premade_rundir_path = premade_rundir_path_arg
premade_rundir_path = Path(
importlib.resources.files("regional_mom6")
/ "demos"
/ "premade_run_directories"
)
if not premade_rundir_path.exists():
print("Could not find premade run directories at ", premade_rundir_path)
print(
Expand Down

0 comments on commit a8b2dee

Please sign in to comment.