Skip to content

Commit

Permalink
Update stressmodels.py
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulcollenteur committed Aug 17, 2023
1 parent 252f1b6 commit 5a5c6f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pastas/stressmodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ class RechargeModel(StressModelBase):
These can be accessed through ps.rch. Default is ps.rch.Linear().
temp: pandas.Series, optional
pandas.Series with pandas.DatetimeIndex containing the temperature series.
It depends on the recharge model is this argument is required or not. The
It depends on the recharge model if this argument is required or not. The
temperature series should be provided in degrees Celsius.
settings: list of dicts or str, optional
The settings of the precipitation and evaporation time series, in this order.
Expand Down Expand Up @@ -1075,7 +1075,7 @@ class RechargeModel(StressModelBase):
Raises
------
A warning if the maximum value of the precipitation series is smaller than 12 and a
A warning if the the maximum annual precipitation is smaller than 12 and a
nonlinear recharge model is applied. This is likely an indication that the units of
the precipitation series are in m/d instead of mm/d. Please check the units of the
precipitation series.
Expand Down Expand Up @@ -1171,8 +1171,8 @@ def __init__(

if prec.resample("A").sum().max() < 12:
msg = (
"The maximum value of the precipitation series is smaller than 12. "
"Please double-check if the stresses are in mm/d and not in m/d."
"The maximum annual precipitation is smaller than 12 m/d. Please "
"double-check if the stresses are in mm/d and not in m/d."
)
logger.warning(msg)

Expand Down

0 comments on commit 5a5c6f6

Please sign in to comment.