summaryrefslogtreecommitdiff
path: root/numpy/lib
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-04-03 16:02:33 -0700
committerCharles Harris <charlesr.harris@gmail.com>2013-04-03 16:02:33 -0700
commitca77e31947b74feded3d69a282e638fa2e9ebf7c (patch)
tree47abbe6403cee151a8439021e0574b4863612c28 /numpy/lib
parent961a28f828fd7075af1e548a294c1443fdf4a215 (diff)
parent3830fcc99443cd479d4dd3fea5217c75396f9f3f (diff)
downloadnumpy-ca77e31947b74feded3d69a282e638fa2e9ebf7c.tar.gz
Merge pull request #460 from endolith/regex_formatting
DOC: Formatting fixes using regex
Diffstat (limited to 'numpy/lib')
-rw-r--r--numpy/lib/_iotools.py5
-rw-r--r--numpy/lib/arraypad.py4
-rw-r--r--numpy/lib/format.py2
-rw-r--r--numpy/lib/function_base.py2
-rw-r--r--numpy/lib/index_tricks.py3
-rw-r--r--numpy/lib/npyio.py2
-rw-r--r--numpy/lib/polynomial.py2
-rw-r--r--numpy/lib/shape_base.py2
-rw-r--r--numpy/lib/utils.py2
9 files changed, 12 insertions, 12 deletions
diff --git a/numpy/lib/_iotools.py b/numpy/lib/_iotools.py
index 87ce9b01d..8054c2662 100644
--- a/numpy/lib/_iotools.py
+++ b/numpy/lib/_iotools.py
@@ -87,7 +87,8 @@ def has_nested_fields(ndtype):
Raises
------
- AttributeError : If `ndtype` does not have a `names` attribute.
+ AttributeError
+ If `ndtype` does not have a `names` attribute.
Examples
--------
@@ -267,7 +268,7 @@ class NameValidator(object):
* If 'lower', field names are converted to lower case.
The default value is True.
- replace_space: '_', optional
+ replace_space : '_', optional
Character(s) used in replacement of white spaces.
Notes
diff --git a/numpy/lib/arraypad.py b/numpy/lib/arraypad.py
index fbf65904a..31bf609f5 100644
--- a/numpy/lib/arraypad.py
+++ b/numpy/lib/arraypad.py
@@ -619,10 +619,10 @@ def pad(array, pad_width, mode=None, **kwargs):
where
- vector: ndarray
+ vector : ndarray
A rank 1 array already padded with zeros. Padded values are
vector[:pad_tuple[0]] and vector[-pad_tuple[1]:].
- iaxis_pad_width: tuple
+ iaxis_pad_width : tuple
A 2-tuple of ints, iaxis_pad_width[0] represents the number of
values padded at the beginning of vector where
iaxis_pad_width[1] represents the number of values padded at
diff --git a/numpy/lib/format.py b/numpy/lib/format.py
index 21b0607e7..a4e8495b5 100644
--- a/numpy/lib/format.py
+++ b/numpy/lib/format.py
@@ -311,7 +311,7 @@ def read_array_header_1_0(fp):
Raises
------
- ValueError :
+ ValueError
If the data is invalid.
"""
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index 9ca72bf41..fdcb4977a 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -2917,7 +2917,7 @@ def median(a, axis=None, out=None, overwrite_input=False):
Alternative output array in which to place the result. It must
have the same shape and buffer length as the expected output,
but the type (of the output) will be cast if necessary.
- overwrite_input : bool optional
+ overwrite_input : bool, optional
If True, then allow use of memory of input array (a) for
calculations. The input array will be modified by the call to
median. This will save memory when you do not need to preserve
diff --git a/numpy/lib/index_tricks.py b/numpy/lib/index_tricks.py
index 045166b84..06ec80d23 100644
--- a/numpy/lib/index_tricks.py
+++ b/numpy/lib/index_tricks.py
@@ -652,7 +652,8 @@ def fill_diagonal(a, val, wrap=False):
Value to be written on the diagonal, its type must be compatible with
that of the array a.
- wrap: bool For tall matrices in NumPy version up to 1.6.2, the
+ wrap : bool
+ For tall matrices in NumPy version up to 1.6.2, the
diagonal "wrapped" after N columns. You can have this behavior
with this option. This affect only tall matrices.
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py
index 065a3ba46..ede54ecc7 100644
--- a/numpy/lib/npyio.py
+++ b/numpy/lib/npyio.py
@@ -283,7 +283,7 @@ def load(file, mmap_mode=None):
file : file-like object or string
The file to read. It must support ``seek()`` and ``read()`` methods.
If the filename extension is ``.gz``, the file is first decompressed.
- mmap_mode: {None, 'r+', 'r', 'w+', 'c'}, optional
+ mmap_mode : {None, 'r+', 'r', 'w+', 'c'}, optional
If not None, then memory-map the file, using the given mode
(see `numpy.memmap` for a detailed description of the modes).
A memory-mapped array is kept on disk. However, it can be accessed
diff --git a/numpy/lib/polynomial.py b/numpy/lib/polynomial.py
index 2d455e33a..3f5593432 100644
--- a/numpy/lib/polynomial.py
+++ b/numpy/lib/polynomial.py
@@ -169,7 +169,7 @@ def roots(p):
Raises
------
- ValueError :
+ ValueError
When `p` cannot be converted to a rank-1 array.
See also
diff --git a/numpy/lib/shape_base.py b/numpy/lib/shape_base.py
index 909f6faa8..4f14a0c40 100644
--- a/numpy/lib/shape_base.py
+++ b/numpy/lib/shape_base.py
@@ -681,12 +681,10 @@ def kron(a,b):
See Also
--------
-
outer : The outer product
Notes
-----
-
The function assumes that the number of dimenensions of `a` and `b`
are the same, if necessary prepending the smallest with ones.
If `a.shape = (r0,r1,..,rN)` and `b.shape = (s0,s1,...,sN)`,
diff --git a/numpy/lib/utils.py b/numpy/lib/utils.py
index 9a8776098..ee49b41d6 100644
--- a/numpy/lib/utils.py
+++ b/numpy/lib/utils.py
@@ -835,7 +835,7 @@ def _lookfor_generate_cache(module, import_modules, regenerate):
Module for which to generate docstring cache
import_modules : bool
Whether to import sub-modules in packages.
- regenerate: bool
+ regenerate : bool
Re-generate the docstring cache
Returns