Skip to content

Commit

Permalink
rxcropmaturity: Wrap two long comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
samsrabin committed Jun 19, 2024
1 parent d01520b commit 98e3689
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cime_config/SystemTests/rxcropmaturity.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ def __init__(self, case):
full_test = "RXCROPMATURITY_" in casebaseid
skipgen_test = "RXCROPMATURITYSKIPGEN_" in casebaseid

# Ensure run length is at least 5 years. Minimum to produce one complete growing season (i.e., two complete calendar years) actually 4 years, but that only gets you 1 season usable for GDD generation, so you can't check for season-to-season consistency.
# Ensure run length is at least 5 years. Minimum to produce one complete growing season
# (i.e., two complete calendar years) actually 4 years, but that only gets you 1 season
# usable for GDD generation, so you can't check for season-to-season consistency.
stop_n = self._case.get_value("STOP_N")
stop_option = self._case.get_value("STOP_OPTION")
stop_n_orig = stop_n
Expand Down Expand Up @@ -68,7 +70,10 @@ def __init__(self, case):
+ f"{stop_n_orig} {stop_option_orig[1:]}"
)
elif skipgen_test and stop_n < 3:
# First year is discarded because crops are already in the ground at restart, and those aren't affected by the new crop calendar inputs. The second year is useable, but we need a third year so that all crops planted in the second year have a chance to finish.
# First year is discarded because crops are already in the ground at restart, and those
# aren't affected by the new crop calendar inputs. The second year is useable, but we
# need a third year so that all crops planted in the second year have a chance to
# finish.
error_message = (
"RXCROPMATURITYSKIPGEN (both-forced part) must be run for at least 3 years; you requested "
+ f"{stop_n_orig} {stop_option_orig[1:]}"
Expand Down

0 comments on commit 98e3689

Please sign in to comment.