Skip to content

Commit

Permalink
Fix final utest error; a system test error still fails
Browse files Browse the repository at this point in the history
  • Loading branch information
slevis-lmwg committed Apr 18, 2024
1 parent f38a5d6 commit 86fbaf6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions python/ctsm/site_and_regional/single_point_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,10 @@ def check_dom_pft(self):
if min_dom_pft < NAT_PFT <= max_dom_pft:
err_msg = (
"WARNING, you are subsetting using mixed land "
+ "units that have both natural pfts and crop cfts. Check "
+ "that your surface dataset looks correct."
"units that have both natural pfts and crop cfts. Check "
"your surface dataset."
)
logger.info(err_msg)
raise argparse.ArgumentTypeError(err_msg)

def check_nonveg(self):
"""
Expand Down
2 changes: 1 addition & 1 deletion python/ctsm/test/test_unit_singlept_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def test_check_dom_pft_mixed_range(self):
single_point.dom_pft = [1, 5, 15]
single_point.num_pft = 78
with self.assertRaisesRegex(
argparse.ArgumentTypeError, "mixed land units is not possible*"
argparse.ArgumentTypeError, "WARNING, you are subsetting using mixed land*"
):
single_point.check_dom_pft()

Expand Down

0 comments on commit 86fbaf6

Please sign in to comment.