Skip to content

Commit

Permalink
Merge pull request #493 from ACCESS-NRI/485-um-env-py-change-to-runti…
Browse files Browse the repository at this point in the history
…me-error

Change error type and message for UM um_env.py
  • Loading branch information
jo-basevi committed Aug 23, 2024
2 parents cf01e0f + 8cf99ce commit 78f67ff
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions payu/models/um.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
import datetime
import fileinput
import glob
from importlib.machinery import SourceFileLoader
from importlib.util import spec_from_loader, module_from_spec
import os
import shutil
import string
Expand Down Expand Up @@ -116,10 +114,10 @@ def setup(self):
deprecated_um_env = os.path.join(self.control_path, 'um_env.py')
new_um_env = os.path.join(self.control_path, 'um_env.yaml')
if (not os.path.isfile(new_um_env)) and os.path.isfile(deprecated_um_env):
raise FutureWarning(
raise RuntimeError(
(
"The `um_env.py` configuration file has been deprecated and "
"should be relplaced with a yaml file. "
"The `um_env.py` configuration file is no longer "
"supported and should be replaced with a yaml file. "
"Convert `um_env.py` to `um_env.yaml` using "
"https://github.com/ACCESS-NRI/esm1.5-scripts/blob/main/config-files/UM/um_env_to_yaml.py"
)
Expand Down

0 comments on commit 78f67ff

Please sign in to comment.