Skip to content

Commit

Permalink
Restore default zero standard deviation.
Browse files Browse the repository at this point in the history
This corrects an inconsistence between README.rst and the code.
  • Loading branch information
juseg committed Aug 11, 2014
1 parent 5f89c07 commit 8eabb78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pypdd.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def __init__(self,
self.interpolate_rule = interpolate_rule
self.interpolate_n = interpolate_n

def __call__(self, temp, prec, stdv):
def __call__(self, temp, prec, stdv=0.0):
"""Run the positive degree day model.
Use temperature, precipitation, and standard deviation of temperature
Expand All @@ -171,7 +171,7 @@ def __call__(self, temp, prec, stdv):
Input near-surface air temperature in degrees Celcius.
*prec*: array_like
Input precipitation rate in meter per year.
*stdv*: array_like
*stdv*: array_like (default 0.0)
Input standard deviation of near-surface air temperature in Kelvin.
By default, inputs are N-dimensional arrays whose first dimension is
Expand Down

0 comments on commit 8eabb78

Please sign in to comment.