From 19e7836b7c95aa4dda1d3d0826e7e71f40e9c30f Mon Sep 17 00:00:00 2001 From: ashjbarnes Date: Wed, 29 Nov 2023 14:34:24 +1100 Subject: [PATCH] update setup_era5 docstring --- regional_mom6/regional_mom6.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/regional_mom6/regional_mom6.py b/regional_mom6/regional_mom6.py index 0cadc1dc..7613bbfb 100644 --- a/regional_mom6/regional_mom6.py +++ b/regional_mom6/regional_mom6.py @@ -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. """ @@ -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) - ## 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: @@ -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` """