diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2014-07-30 16:48:11 -0600 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-07-31 21:21:13 +0200 |
commit | dec6658cdc10a23ad0e733fb52a814306033d88c (patch) | |
tree | dfa2a5d879f9ec10f75287a045070729cf415432 /numpy/lib/shape_base.py | |
parent | 0b5a6645ee110a8d4c6b5defd8c01791ee48bda1 (diff) | |
download | numpy-dec6658cdc10a23ad0e733fb52a814306033d88c.tar.gz |
MAINT: Fixes for problems in numpy/lib revealed by pyflakes.
Some of those problems look like potential coding errors. In those
cases a Fixme comment was made and the offending code, usually an
unused variable, was commented out.
Diffstat (limited to 'numpy/lib/shape_base.py')
-rw-r--r-- | numpy/lib/shape_base.py | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/numpy/lib/shape_base.py b/numpy/lib/shape_base.py index a6d391728..929646de6 100644 --- a/numpy/lib/shape_base.py +++ b/numpy/lib/shape_base.py @@ -1,16 +1,21 @@ from __future__ import division, absolute_import, print_function -__all__ = ['column_stack', 'row_stack', 'dstack', 'array_split', 'split', 'hsplit', - 'vsplit', 'dsplit', 'apply_over_axes', 'expand_dims', - 'apply_along_axis', 'kron', 'tile', 'get_array_wrap'] - import warnings import numpy.core.numeric as _nx -from numpy.core.numeric import asarray, zeros, newaxis, outer, \ - concatenate, isscalar, array, asanyarray +from numpy.core.numeric import ( + asarray, zeros, outer, concatenate, isscalar, array, asanyarray + ) from numpy.core.fromnumeric import product, reshape -from numpy.core import hstack, vstack, atleast_3d +from numpy.core import vstack, atleast_3d + + +__all__ = [ + 'column_stack', 'row_stack', 'dstack', 'array_split', 'split', + 'hsplit', 'vsplit', 'dsplit', 'apply_over_axes', 'expand_dims', + 'apply_along_axis', 'kron', 'tile', 'get_array_wrap' + ] + def apply_along_axis(func1d, axis, arr, *args, **kwargs): """ |