Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | MAINT/BUG: Remove special-casing for 0d arrays, now that indexing with a ↵ | Eric Wieser | 2017-10-21 | 1 | -15/+8 | |
| | | | | | | single boolean is ok Also fix the test added in gh-4792, which didn't make sense, but passed anyway | |||||
* | MAINT: rename mn and mx to first_edge and last_edge | Eric Wieser | 2017-10-19 | 1 | -18/+19 | |
| | ||||||
* | MAINT: Tidy np.histogram, and improve error messages | Eric Wieser | 2017-10-19 | 1 | -59/+77 | |
| | | | | | | | | | | Split up the overloaded `bins` variable into separate names depending on its meaning Helpful errors are now emitted for: * non-integer bin counts (fixes gh-8072) * non-1d bin edges Removes another use of `np.isscalar`... | |||||
* | Merge pull request #9294 from b-carter/fix_histogram_monotonicity_check | Eric Wieser | 2017-09-24 | 1 | -1/+1 | |
|\ | | | | | BUG: Fixes histogram monotonicity check for unsigned bin values | |||||
| * | allow non-strictly increasing bins | Brandon Carter | 2017-08-19 | 1 | -1/+1 | |
| | | ||||||
| * | minor change to the logic | Brandon Carter | 2017-06-25 | 1 | -1/+1 | |
| | | ||||||
| * | BUG: fixes unsigned bins monotonicity check, see #9222 | Brandon Carter | 2017-06-24 | 1 | -1/+1 | |
| | | ||||||
* | | MAINT: Use zip, not enumerate | Eric Wieser | 2017-09-21 | 1 | -17/+18 | |
| | | | | | | | | Double-indexing is just a little harder to read | |||||
* | | Merge pull request #9408 from eric-wieser/gradient-fix | Charles Harris | 2017-09-21 | 1 | -7/+12 | |
|\ \ | | | | | | | BUG: various fixes to np.gradient | |||||
| * | | MAINT: Use clearer variable | Eric Wieser | 2017-07-13 | 1 | -1/+1 | |
| | | | ||||||
| * | | BUG: Use np.ndim not asarray, to allow duck-types | Eric Wieser | 2017-07-13 | 1 | -7/+6 | |
| | | | ||||||
| * | | BUG: Only allow 1d distance arrays | Eric Wieser | 2017-07-13 | 1 | -1/+3 | |
| | | | | | | | | | | | | | | | | | | 2d arrays would work, but in unpredictable and undocumented ways. This at least makes gh-9401 give a better error message. | |||||
| * | | BUG: Allow 0d arrays instead of scalars in gradient | Eric Wieser | 2017-07-13 | 1 | -7/+11 | |
| | | | | | | | | | | | | This fixes gh-8292 | |||||
* | | | DOC: rot90 wrongly positioned versionadded directive. [skip ci] | Michael Seifert | 2017-08-25 | 1 | -2/+2 | |
| | | | ||||||
* | | | MAINT: Use moveaxis instead of rollaxis internally (#9475) | Nico Schlömer | 2017-08-10 | 1 | -7/+7 | |
| | | | | | | | | | | | | | | | Also add a hint to the documentation advising the use of moveaxis over rollaxis. Tests for rollaxis are left alone. | |||||
* | | | MAINT/DOC: Use builtin when np.{x} is builtins.{x}. | Eric Wieser | 2017-08-05 | 1 | -9/+9 | |
| | | | | | | | | | | | | | | | | | | | | | This is the case for x in {int, bool, str, float, complex, object}. Using the np.{x} version is deceptive as it suggests that there is a difference. This change doesn't affect any external behaviour. The `long` type is missing in python 3, so np.long is still useful | |||||
* | | | MAINT: Changed diff to use iterative instead of recursive approach | Joseph Fox-Rabinovitz | 2017-07-31 | 1 | -23/+31 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TST: Added tests for `n` parameter Added test for `datetime64` type change Added tests for axis normalization Added test for subtype handling DOC: Minor updates to docs: Added explanation for `n==0` Added documentation describing `datetime64` handling Updated formatting Added call to normalize_axis_index | |||||
* | | | MAINT: Use dtypes, not typecodes, and remove special casing for timedelta | Eric Wieser | 2017-07-13 | 1 | -27/+21 | |
| | | | ||||||
* | | | BUG: float16 is promoted to float64 by gradient | Eric Wieser | 2017-07-13 | 1 | -1/+1 | |
| |/ |/| | | | | | This isn't the case for `diff` | |||||
* | | MAINT: Use neq instead of xor in diff | Egor Panfilov | 2017-06-17 | 1 | -1/+1 | |
| | | ||||||
* | | BUG: Switched to xor for bool arrays in diff, added corresponding tests | Egor Panfilov | 2017-06-17 | 1 | -5/+9 | |
| | | ||||||
* | | DOC: BLD: fix lots of Sphinx warnings/errors. | Ralf Gommers | 2017-06-10 | 1 | -1/+1 | |
| | | ||||||
* | | Merge pull request #9214 from eric-wieser/no-one-arg-where | Charles Harris | 2017-06-03 | 1 | -1/+1 | |
|\ \ | | | | | | | MAINT: Don't internally use the one-argument where | |||||
| * | | MAINT: Don't internally use the one-argument where | Eric Wieser | 2017-06-03 | 1 | -1/+1 | |
| | | | | | | | | | | | | nonzero is a clearer spelling | |||||
* | | | BUG: KeyboardInterrupt is swallowed all over the place | Eric Wieser | 2017-06-03 | 1 | -1/+1 | |
|/ / | | | | | | | Bare except is very rarely the right thing | |||||
* | | Merge pull request #9212 from eric-wieser/tidy-function_base | Julian Taylor | 2017-06-03 | 1 | -5/+3 | |
|\ \ | | | | | | | MAINT: Combine similar branches | |||||
| * | | MAINT: Combine similar branches | Eric Wieser | 2017-06-03 | 1 | -5/+3 | |
| |/ | ||||||
* | | MAINT: Use np.concatenate instead of np.vstack (#8934) | Joseph Paul Cohen | 2017-06-02 | 1 | -12/+4 | |
|/ | | | | | | | | | | | | | | The np.vstack function is maintained for backward compatibility, it's use in new code is discouraged. * MAINT: Replace internal uses of vstack vstack is supported only for backward compatibility We should use concatenate or stack instead * MAINT: Remove 1d special casing in piecewise * STY: Fix missing blank line in ma.tests.test_extras.py | |||||
* | ENH: Spelling fixes | Ville Skyttä | 2017-05-09 | 1 | -1/+1 | |
| | ||||||
* | DOC: Explain the behavior of diff on unsigned types | Eric Wieser | 2017-04-25 | 1 | -0/+17 | |
| | | | | Fixes #2522 | |||||
* | DOC: Fix typos in percentile (#8900) | Baurzhan Muftakhidinov | 2017-04-06 | 1 | -2/+2 | |
| | ||||||
* | MAINT: Rename _validate_axis, and document it | Eric Wieser | 2017-03-28 | 1 | -2/+2 | |
| | ||||||
* | MAINT: Use _validate_axis inside _ureduce | Eric Wieser | 2017-03-28 | 1 | -17/+14 | |
| | | | | This fixes an omission where duplicate axes would only be detected when positive | |||||
* | MAINT: Reuse _validate_axis in np.gradient | Eric Wieser | 2017-03-28 | 1 | -13/+2 | |
| | | | | | | | This also means that its axis argument invokes operator.index like others do. _validate_axis currently accepts lists of axes, which is a bug. | |||||
* | DOC: Include np. prefix in meshgrid examples | Egor Klenin | 2017-03-21 | 1 | -5/+5 | |
| | | | | Add "np." prefix to meshgrid calls for consistency | |||||
* | BUG: Fix np.average with object array weights | Duke Vijitbenjaronk | 2017-03-07 | 1 | -1/+1 | |
| | | | | Fixes #8696 | |||||
* | DOC: Fixed small mistakes in numpy.copy documentation. | Michael Seifert | 2017-02-26 | 1 | -68/+68 | |
| | | | | | | | Including missing backticks around link, included a missing colon in example and removed excessive indentation before "doctest skip directive". [skip ci] | |||||
* | Merge pull request #8685 from eric-wieser/shape-to-ndim | Julian Taylor | 2017-02-25 | 1 | -4/+4 | |
|\ | | | | | ENH: add dtype.ndim | |||||
| * | MAINT: replace len(x.shape) with x.ndim | Eric Wieser | 2017-02-24 | 1 | -4/+4 | |
| | | ||||||
* | | Merge pull request #8688 from madphysicist/patch-1 | Charles Harris | 2017-02-24 | 1 | -1/+8 | |
|\ \ | | | | | | | DOC: Added note to np.diff | |||||
| * | | DOC: Added note to np.diff | Joseph Fox-Rabinovitz | 2017-02-24 | 1 | -1/+8 | |
| |/ | | | | | | | Also noted that type is preserved. [ci skip] | |||||
* | | MAINT: Fix use of Python 2.6 deprecated escape sequences. | Charles Harris | 2017-02-24 | 1 | -2/+2 | |
|/ | | | | Closes #8687. | |||||
* | ENH: gradient support for unevenly spaced data | Alessandro Pietro Bardelli | 2017-02-22 | 1 | -84/+235 | |
| | | | | | | | | | | | | | This somehow reverts #7618 and solves #6847, #7548 by implementing support for unevenly spaced data. Now the behaviour is similar to that of Matlab/Octave function. As argument it can take: 1. A single scalar to specify a sample distance for all dimensions. 2. N scalars to specify a constant sample distance for each dimension. i.e. `dx`, `dy`, `dz`, ... 3. N arrays to specify the coordinates of the values along each dimension of F. The length of the array must match the size of the corresponding dimension 4. Any combination of N scalars/arrays with the meaning of 2. and 3. | |||||
* | MAINT: Use normalize_axis_index in all python axis checking | Eric Wieser | 2017-02-20 | 1 | -9/+4 | |
| | | | | | | | As a result, some exceptions change from ValueError to IndexError This also changes the exception types raised in places where normalize_axis_index is not quite appropriate | |||||
* | Merge pull request #8617 from eric-wieser/fix-8561 | Marten van Kerkwijk | 2017-02-14 | 1 | -10/+7 | |
|\ | | | | | BUG: Copy meshgrid after broadcasting | |||||
| * | BUG: Copy meshgrid after broadcasting, fixing #8561 | Eric Wieser | 2017-02-13 | 1 | -10/+7 | |
| | | | | | | | | Also, remove some unused variables | |||||
* | | DOC: Indicate that axis param to average may be a tuple of ints. | Alex Rothberg | 2017-02-12 | 1 | -3/+10 | |
|/ | ||||||
* | Revert "DOC: gradient uses 1st order central difference in the interior" | Alessandro Pietro Bardelli | 2017-02-12 | 1 | -3/+3 | |
| | ||||||
* | DOC: gradient uses 1st order central difference in the interior (#8605) | drabach | 2017-02-11 | 1 | -3/+3 | |
| | | | The gradient function uses 1st order central difference in the interior, not second order. | |||||
* | MAINT: typo in histogram docstring | drlvk | 2017-01-28 | 1 | -1/+1 | |
| | | | "it's arguments" should be "its arguments" |