Skip to content

Commit

Permalink
Merge pull request #3407 from mrjbq7/doc-fixes
Browse files Browse the repository at this point in the history
DOC: fix comments in min and ptp.
  • Loading branch information
charris committed Jun 8, 2013
2 parents c113b0f + 424d84b commit 8dcf397
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numpy/ma/core.py
Expand Up @@ -5937,7 +5937,7 @@ def min(obj, axis=None, out=None, fill_value=None):
try:
return obj.min(axis=axis, fill_value=fill_value, out=out)
except (AttributeError, TypeError):
# If obj doesn't have a max method,
# If obj doesn't have a min method,
# ...or if the method doesn't accept a fill_value argument
return asanyarray(obj).min(axis=axis, fill_value=fill_value, out=out)
min.__doc__ = MaskedArray.min.__doc__
Expand All @@ -5956,7 +5956,7 @@ def ptp(obj, axis=None, out=None, fill_value=None):
try:
return obj.ptp(axis, out=out, fill_value=fill_value)
except (AttributeError, TypeError):
# If obj doesn't have a max method,
# If obj doesn't have a ptp method,
# ...or if the method doesn't accept a fill_value argument
return asanyarray(obj).ptp(axis=axis, fill_value=fill_value, out=out)
ptp.__doc__ = MaskedArray.ptp.__doc__
Expand Down

0 comments on commit 8dcf397

Please sign in to comment.