Skip to content

Commit

Permalink
Minor Edit Review
Browse files Browse the repository at this point in the history
  • Loading branch information
manishvenu committed Jan 17, 2025
1 parent 31c6019 commit 96005b3
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 @@ -2302,13 +2302,8 @@ def setup_run_directory(

# Check if we can implement tides
if with_tides:
if not (self.mom_input_dir / "forcing").exists():
all_files = os.listdir(Path(self.mom_input_dir))
else:
all_files = os.listdir(
Path(self.mom_input_dir / "forcing")
) + os.listdir(Path(self.mom_input_dir))
tidal_files_exist = any("tidal" in filename for filename in all_files)
tidal_files_exist = any(Path(self.mom_input_dir).rglob("*tidal*"))

if not tidal_files_exist:
raise ValueError(
"No files with 'tidal' in their names found in the forcing or input directory. If you meant to use tides, please run the setup_tides_rectangle_boundaries method first. That does output some tidal files."
Expand Down

0 comments on commit 96005b3

Please sign in to comment.