Skip to content

Commit

Permalink
update setup_era5 docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
ashjbarnes committed Nov 29, 2023
1 parent a8541b1 commit 19e7836
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions regional_mom6/regional_mom6.py
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ def setup_run_directory(self, demo_run_dir=False, using_payu=False):
"""Sets up the run directory for MOM6. Either copies a pre-made set of files, or modifies existing files in the `rundir` directory for the experiment.
Args:
use_default (Optional[str,bool]): Choose whether or not to load a premade run directory. If yes, choose one of ``era5`` or ``jra`` corresponding to the choices of surface forcing.
demo_run_dir (Optional[str,bool]): Choose whether or not to load a premade run directory. If yes, choose one of ``era5`` or ``jra`` corresponding to the choices of surface forcing.
using_payu (Optional[bool]): Whether or not to use payu to run the model. If True, a payu configuration file will be created.
"""

Expand Down Expand Up @@ -1277,11 +1277,6 @@ def setup_run_directory(self, demo_run_dir=False, using_payu=False):
ncpus = self.layout[0] * self.layout[1]
print("Number of CPUs required: ", ncpus)

Check warning on line 1278 in regional_mom6/regional_mom6.py

View check run for this annotation

Codecov / codecov/patch

regional_mom6/regional_mom6.py#L1277-L1278

Added lines #L1277 - L1278 were not covered by tests

## Modify MOM_input
# inputfile = open(f"{self.mom_run_dir}/MOM_input", "r")
# lines = inputfile.readlines()
# inputfile.close()

## Modify the input namelists to give the correct layouts
for j in ["MOM_input", "SIS_input"]:
with open(self.mom_run_dir / j, "r") as file:
Expand Down Expand Up @@ -1348,7 +1343,7 @@ def setup_era5(self, era5_path):
Args:
era5_path (str): Path to the ERA5 forcing files
era5_path (str): Path to the ERA5 forcing files. Specifically, the single level reanalysis product. Eg `SOMEPATH/era5/single-levels/reanalysis`
"""

Expand Down

0 comments on commit 19e7836

Please sign in to comment.