Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
manishvenu committed Jan 9, 2025
1 parent 3d5dbeb commit 29318a0
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions regional_mom6/regional_mom6.py
Original file line number Diff line number Diff line change
Expand Up @@ -2026,7 +2026,8 @@ def tidy_bathymetry(

## reopen bathymetry to modify
print(
"Tidy bathymetry: Reading in regridded bathymetry to fix up metadata...", end=""
"Tidy bathymetry: Reading in regridded bathymetry to fix up metadata...",
end="",
)
if read_bathy_from_file := bathymetry is None:
bathymetry = xr.open_dataset(
Expand Down Expand Up @@ -2212,9 +2213,7 @@ def run_FRE_tools(self, layout=None):
"Running GFDL's FRE Tools. The following information is all printed by the FRE tools themselves"
)
if not (self.mom_input_dir / "bathymetry.nc").exists():
print(
"No bathymetry file! Need to run setup_bathymetry method first"
)
print("No bathymetry file! Need to run setup_bathymetry method first")
return

for p in self.mom_input_dir.glob("mask_table*"):
Expand Down Expand Up @@ -2293,11 +2292,10 @@ def setup_run_directory(
)

if not premade_rundir_path.exists():
print("Could not find premade run directories at ", premade_rundir_path)
print(
"Could not find premade run directories at ", premade_rundir_path
)
print(
"Perhaps the package was imported directly rather than installed with conda. Checking if this is the case... ", end=""
"Perhaps the package was imported directly rather than installed with conda. Checking if this is the case... ",
end="",
)

premade_rundir_path = Path(
Expand Down Expand Up @@ -2644,9 +2642,7 @@ def change_MOM_parameter(
else:
if param_name in MOM_override_dict.keys():
original_val = MOM_override_dict[param_name]["value"]
print(
"Deleting parameter {} from MOM_override".format(param_name)
)
print("Deleting parameter {} from MOM_override".format(param_name))
del MOM_override_dict[param_name]
else:
print(
Expand Down

0 comments on commit 29318a0

Please sign in to comment.