summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* Revert "DOC: add vstack, hstack, dstack reference to stack documentation."revert-7191-stack_documentationStephan Hoyer2016-02-051-5/+2
|
* Merge pull request #7191 from aukejw/stack_documentationCharles Harris2016-02-051-2/+5
|\ | | | | DOC: add vstack, hstack, dstack reference to stack documentation.
| * DOC: changed 'depth wise' to 'depthwise', 'the existing' to 'an existing'auke2016-02-051-7/+5
| |
| * DOC: add vstack, hstack, dstack reference to stack documentation.auke2016-02-051-0/+5
| |
* | Merge pull request #7193 from madphysicist/extra-assertCharles Harris2016-02-051-3/+0
|\ \ | | | | | | MAINT: Removed supurious assert in histogram estimators
| * | MAINT: Removed supurious assert in histogram estimatorsJoseph Fox-Rabinovitz2016-02-051-3/+0
| |/
* | STY: Drop some trailing spaces in `numpy.ma.core`.John Kirkham2016-02-051-3/+3
|/
* TST: Fixed f2py test for Anaconda non-win32gfyoung2016-02-021-8/+3
| | | | | | | | | | | When you run 'python -V' under Anaconda, it returns for example, 'Python 3.4.3 :: Continuum Analytics, Inc.' However, the original parsing of the version in 'test_f2py' assumed there was nothing following the version number, causing a ValueError because you can't assign three variables to four components that you get from splitting on the '.'
* Update Wikipedia references for mtrand.pyxArne de Laat2016-02-021-12/+12
| | | | Specifically the 'Logarithmic distribution' link is fixed. For others the links or article names are updated.
* TST: out of bounds bases in base_reprNathaniel Beaver2016-02-011-0/+6
|
* DOC: base_repr *can* handle negative integers.Nathaniel Beaver2016-02-011-1/+1
|
* BUG: check lower limit of base in base_repr.Nathaniel Beaver2016-02-011-0/+2
|
* ENH: usecols now accepts an int when only one column has to be readI--P2016-02-012-5/+68
|
* Merge pull request #7129 from madphysicist/percentile-midpoint-interpolationCharles Harris2016-01-312-2/+6
|\ | | | | BUG: Fixed 'midpoint' interpolation of np.percentile in odd cases.
| * BUG: Fixed 'midpoint' interpolation of np.percentile in odd cases.Joseph Fox-Rabinovitz2016-01-312-2/+6
| | | | | | | | | | 'midpoint' must return the same as 'higher' and 'lower' when the two are the same, not 'lower' + 0.5 as it was doing.
* | Merge pull request #7145 from bastula/piecewiseCharles Harris2016-01-312-4/+20
|\ \ | | | | | | BUG: Fixed regressions in np.piecewise in ref to #5737 and #5729.
| * | MAINT: Addressed comments in PR #7145Aditya Panchal2016-01-311-2/+3
| | |
| * | BUG: Fixed regressions in np.piecewise in ref to #5737 and #5729.Aditya Panchal2016-01-292-4/+19
| | | | | | | | | | | | Added unit tests for these conditions.
* | | Merge pull request #7156 from mhvk/linspace-subclass-safe2Charles Harris2016-01-312-4/+22
|\ \ \ | | | | | | | | Reascertain that linspace respects ndarray subclasses in start, stop.
| * | | Reascertain that linspace respects ndarray subclasses in start, stop.Marten van Kerkwijk2016-01-312-4/+22
| | | |
* | | | Merge pull request #7119 from gfyoung/mingw_patchRalf Gommers2016-01-311-1/+1
|\ \ \ \ | | | | | | | | | | BUG: Fixed mingw.lib error
| * | | | BUG: Fixed mingw.lib errorgfyoung2016-01-251-1/+1
| | | | | | | | | | | | | | | | | | | | Closes gh-647.
* | | | | Merge pull request #7152 from bertrand-l/fix/unicode-kwarg-breaks-padCharles Harris2016-01-312-1/+12
|\ \ \ \ \ | | | | | | | | | | | | BUG: mode kwargs passed as unicode to np.pad raises an exception
| * | | | | BUG: mode kwargs passed as unicode to np.pad raises an exceptionbertrand2016-01-302-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | isinstance(mode, str) is False in python2.7 when mode is of unicode type, and mode is then mistakenly assumed to be a callable. See #7112
* | | | | | Merge pull request #7147 from njsmith/disable-numpy-ufuncCharles Harris2016-01-313-18/+51
|\ \ \ \ \ \ | |/ / / / / |/| | | | | Temporarily disable __numpy_ufunc__
| * | | | | Temporarily disable __numpy_ufunc__Nathaniel J. Smith2016-01-293-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Given that we accidentally released 1.11b2 with `__numpy_ufunc__` still enabled, we should probably just disable it in master for now. When ready to re-enable, grep for NUMPY_UFUNC_DISABLED. Or just revert this commit.
| * | | | | TST: remove duplicate testNathaniel J. Smith2016-01-291-18/+0
| | |/ / / | |/| | | | | | | | | | | | | | | | | | There are two identical copies of test_dot_override in test_multiarray.py. This seems surplus to requirements.
* | | | | Merge pull request #7149 from seberg/missing-suffixCharles Harris2016-01-301-1/+1
|\ \ \ \ \ | |/ / / / |/| | | | TST: Add missing suffix to temppath manager
| * | | | TST: Add missing suffix to temppath managerSebastian Berg2016-01-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Without the suffix, np.save creates a new file and the file does not get cleaned up.
* | | | | MAINT: Change `call_fortran` into `callfortran` in comments.Dongjoon Hyun2016-01-291-1/+1
| | | | | | | | | | | | | | | | | | | | It was committed mistakenly in #7134. `callfortran` is used a lot really.
* | | | | Merge pull request #7125 from madphysicist/percentile-docStephan Hoyer2016-01-291-42/+39
|\ \ \ \ \ | | | | | | | | | | | | DOC: Updated documentation wording and examples for np.percentile.
| * | | | | MAINT: Accepted all review comments for PR#7125Joseph Fox-Rabinovitz2016-01-271-7/+3
| | | | | |
| * | | | | DOC: Updated documentation wording and examples for np.percentile.Joseph Fox-Rabinovitz2016-01-261-39/+40
| | |_|_|/ | |/| | | | | | | | | | | | | Examples had some factual errors. Wording updated in a couple of places.
* | | | | Merge pull request #7102 from kawochen/CLN-ISO-8601Charles Harris2016-01-291-3/+3
|\ \ \ \ \ | |_|/ / / |/| | | | MAINT: Removed conditionals that are always false in datetime_strings.c
| * | | | MAINT: Removed conditionals that are always true in datetime_strings.cKa Wo Chen2016-01-231-3/+3
| | | | |
* | | | | TST: Unpickled void scalars must be behavedGraham Markall2016-01-291-0/+2
| | | | | | | | | | | | | | | | | | | | Unpickled void scalars must be both aligned and writeable.
* | | | | BUG: Unpickled void scalars should be contiguousGraham Markall2016-01-292-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Void scalars are both C- and Fortran-contiguous, so pickling and unpickling them should result in a new void scalar that also has these flags set. Fixes #7140.
* | | | | Merge pull request #7026 from gfyoung/uniform_bounds_bugRobert Kern2016-01-291-0/+6
|\ \ \ \ \ | |_|_|_|/ |/| | | | DOC: Clarify behavior in np.random.uniform
| * | | | DOC: Clarify behavior in np.random.uniformgfyoung2016-01-251-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Although the arguments are specified as 'high' and 'low', it is possible to pass in values for 'low' and 'high' where 'low' >= 'high' and still obtain well-defined behavior. The documentation has been expanded to reflect this fact, with a note to discourage passing in arguments satisfying 'low' > 'high'.
* | | | | MAINT: Fix some typos in a code string and commentsDongjoon Hyun2016-01-2730-38/+38
| | | | |
* | | | | MAINT: warn in egg_info command if using setuptools.sdist.Ralf Gommers2016-01-271-0/+8
| |_|/ / |/| | | | | | | | | | | | | | | | | | | Warn in numpy/distutils/command/egg_info.py if using setuptools.sdist. See gh-7127 for details.
* | | | TST: Fixed f2py test for non-versioned python executablesgfyoung2016-01-251-4/+13
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'sys.executable' can come in various names, but the three main ones are "python", "python{major_version}", and "python{major_version.minor_version}". The current version of the f2py test assumes that only the latter two are used. Since "f2py" is generally versioned, using the executable basename "python" will make it impossible to find. This commit fixes that issue by using a sure-fire way of getting the Python version.
* | | TST: Fixed f2py test for win32 virtualenvgfyoung2016-01-251-1/+7
|/ / | | | | | | | | | | | | | | Fixed test_scripts.test_f2py test so that it can pass correctly on win32 virtualenvs, in which the Python executable and the f2py.py file are both in the Scripts directory.
* | BUG: One element array inputs get one element arrays returned in np.randomgfyoung2016-01-242-188/+274
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes bug in np.random methods that would return scalars when passed one-element array inputs. This is because one-element ndarrays can be cast to integers / floats, which is what functions like PyFloat_AsDouble do before converting to the intended data type. This commit changes the check used to determine whether the inputs are purely scalar by converting all inputs to arrays and checking if the resulting shape is an empty tuple (scalar) or not (array). Closes gh-4263.
* | DOC: Clarified output size for broadcastable mtrand.pyx functionsgfyoung2016-01-231-182/+243
| | | | | | | | | | | | | | Clarified the output size depending on whether scalar or non-scalar inputs are passed to functions in mtrand.pyx that can broadcast their arguments.
* | TST: Added broadcasting tests in test_random.pygfyoung2016-01-232-87/+644
|/ | | | | | Added a whole new suite of tests to ensure that functions in mtrand.pyx which are broadcastable actually broadcast their arguments properly.
* DOC: Update `norm` docstring to include examples that reflect that all ↵John Kirkham2016-01-221-8/+8
| | | | computations are done with floating point numbers.
* BUG: Make sure that the `ord=0` case returns a float.John Kirkham2016-01-222-5/+2
|
* TST: Verify that `norm` is properly casting values to floats as needed.John Kirkham2016-01-221-0/+96
|
* BUG: In `norm`, always cast non-floating point arrays to 64-bit floats. ↵John Kirkham2016-01-221-0/+3
| | | | Otherwise, weird integer roundoff errors give faulty results in some cases.