summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
diff options
context:
space:
mode:
authorStefan van der Walt <stefan@sun.ac.za>2007-03-22 22:49:17 +0000
committerStefan van der Walt <stefan@sun.ac.za>2007-03-22 22:49:17 +0000
commitf48806e7ae54c5de0ac622e388c983a015b670bf (patch)
tree8ae29dcaa9eaf438fd1cb3912348f2e43c303dc4 /numpy/lib/function_base.py
parenta07c823b0bd91b282b38f8d8609bae808078aaa3 (diff)
downloadnumpy-f48806e7ae54c5de0ac622e388c983a015b670bf.tar.gz
Replace tabs with spaces (see ticket #470).
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r--numpy/lib/function_base.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index 5d3e75036..8f08a73a4 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -143,7 +143,7 @@ def histogramdd(sample, bins=10, range=None, normed=False):
H, edges = histogramdd(x, bins = (5, 6, 7))
See also: histogram
-
+
"""
try:
@@ -264,7 +264,7 @@ def average(a, axis=None, weights=None, returned=False):
Raises ZeroDivisionError if appropriate. (The version in MA does
not -- it returns masked values).
-
+
"""
if axis is None:
a = array(a).ravel()
@@ -403,7 +403,7 @@ def select(condlist, choicelist, default=0):
Note that one of the condition arrays must be large enough to handle
the largest array in the choice list.
-
+
"""
n = len(condlist)
n2 = len(choicelist)
@@ -456,7 +456,7 @@ def gradient(f, *varargs):
N arrays of the same shape as f giving the derivative of f with respect
to each dimension.
-
+
"""
N = len(f.shape) # number of dimensions
n = len(varargs)
@@ -641,7 +641,7 @@ def trim_zeros(filt, trim='fb'):
>>> a = array((0, 0, 0, 1, 2, 3, 2, 1, 0))
>>> numpy.trim_zeros(a)
array([1, 2, 3, 2, 1])
-
+
"""
first = 0
trim = trim.upper()
@@ -666,7 +666,7 @@ def unique(x):
Example:
>>> unique([5,2,4,0,4,4,2,2,1])
array([0, 1, 2, 4, 5])
-
+
"""
try:
tmp = x.flatten()
@@ -692,7 +692,7 @@ def place(arr, mask, vals):
"""Similar to putmask arr[mask] = vals but the 1D array vals has the
same number of elements as the non-zero values of mask. Inverse of
extract.
-
+
"""
return _insert(arr, mask, vals)