Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | | | | | Merge pull request #8807 from eric-wieser/poly1d-fixes-fixes-fixes | Charles Harris | 2017-03-21 | 2 | -3/+16 | |
|\ \ \ \ \ \ | | | | | | | | | | | | | | | TST: Prove that poly1d coeffs are immutable | |||||
| * | | | | | | TST: Prove that poly1d coeffs are immutable | Eric Wieser | 2017-03-21 | 2 | -3/+16 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the comment suggesting that they are not | |||||
* | | | | | | | Merge pull request #8788 from eric-wieser/poly1d-fixes-fixes | Charles Harris | 2017-03-21 | 1 | -1/+11 | |
|\ \ \ \ \ \ \ | |/ / / / / / | | / / / / / | |/ / / / / |/| | | | | | BUG: Fix scipy incompatibility with cleanup to poly1d | |||||
| * | | | | | BUG: Prevent modification of coefficients | Eric Wieser | 2017-03-21 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `poly.coeffs = 1` has always failed with a strong exception guarantee. However, `poly.coeffs += 1` would both change the state and fail. Now both fail without affecting the value. | |||||
| * | | | | | BUG: Fix regression in scipy that relied on quirky behaviour | Eric Wieser | 2017-03-21 | 1 | -0/+10 | |
| | | | | | | | | | | | | | | | | | | | | | | | | Scipy needs `.__dict__['coeffs']` to work, so we can't call the member _coeffs | |||||
* | | | | | | DOC: Include np. prefix in meshgrid examples | Egor Klenin | 2017-03-21 | 1 | -5/+5 | |
| | | | | | | | | | | | | | | | | | | | | | | | | Add "np." prefix to meshgrid calls for consistency | |||||
* | | | | | | Merge pull request #8762 from eric-wieser/poly1d-fixes | Charles Harris | 2017-03-14 | 2 | -29/+54 | |
|\ \ \ \ \ \ | |/ / / / / | | | | | | | BUG: Prevent crash in poly1d.__eq__ | |||||
| * | | | | | DEP: Deprecate copying random properties in __init__ | Eric Wieser | 2017-03-09 | 1 | -2/+9 | |
| | | | | | | ||||||
| * | | | | | MAINT: Remove weird __setattr__ logic emulating properties | Eric Wieser | 2017-03-09 | 1 | -27/+32 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Presumably written long before @property existed. This means we don't need __dict__ everywhere | |||||
| * | | | | | BUG: Prevent crash in poly1d.__eq__ | Eric Wieser | 2017-03-09 | 2 | -0/+13 | |
| | | | | | | | | | | | | | | | | | | | | | | | | Fixes #8760 | |||||
* | | | | | | Merge pull request #8750 from warut-vijit/master | Eric Wieser | 2017-03-08 | 2 | -1/+8 | |
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | BUG: Fix np.average for object arrays | |||||
| * | | | | | BUG: Fix np.average with object array weights | Duke Vijitbenjaronk | 2017-03-07 | 2 | -1/+8 | |
| | |/ / / | |/| | | | | | | | | | | | | | Fixes #8696 | |||||
* | | | | | BUG: Make MaskedArray.argsort and MaskedArray.sort consistent | Eric Wieser | 2017-03-07 | 1 | -0/+12 | |
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | Previously, these had different rules for unmasking values, and even different arguments to decide how to do so. Fixes #8664 | |||||
* | | | | 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 | 7 | -17/+17 | |
|\ \ \ \ | | | | | | | | | | | ENH: add dtype.ndim | |||||
| * | | | | MAINT: replace len(x.shape) with x.ndim | Eric Wieser | 2017-02-24 | 7 | -17/+17 | |
| | | | | | ||||||
* | | | | | 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. | |||||
* | | | | Merge pull request #8646 from joshloyal/enh-inplace-nan_to_num | Eric Wieser | 2017-02-24 | 2 | -2/+19 | |
|\ \ \ \ | | | | | | | | | | | ENH: Allow for an in-place nan_to_num conversion | |||||
| * | | | | ENH: Allow for an in-place nan_to_num conversion. Fixes #8634 | Joshua Loyal | 2017-02-20 | 2 | -2/+19 | |
| | |/ / | |/| | | ||||||
* | | | | Merge pull request #8677 from eric-wieser/use-izip_longest | Julian Taylor | 2017-02-23 | 1 | -13/+9 | |
|\ \ \ \ | | | | | | | | | | | MAINT: We can now rely on itertools.izip_longest existing | |||||
| * | | | | MAINT: We can now rely on itertools.izip_longest existing | Eric Wieser | 2017-02-23 | 1 | -13/+9 | |
| | | | | | ||||||
* | | | | | Merge pull request #8668 from flying-sheep/patch-1 | Eric Wieser | 2017-02-22 | 1 | -2/+9 | |
|\ \ \ \ \ | | | | | | | | | | | | | DOC: Add more examples for np.c_ | |||||
| * | | | | | DOC: Added “See Also” section for c_ | Philipp A | 2017-02-22 | 1 | -2/+5 | |
| | | | | | | ||||||
| * | | | | | DOC: Added more common example for np.c_ | Philipp A | 2017-02-22 | 1 | -0/+4 | |
| |/ / / / | | | | | | | | | | | | | | | | I mostly use that object to bind 1D arrays as columns, so I added an example for that use case. | |||||
* | | | | | ENH: gradient support for unevenly spaced data | Alessandro Pietro Bardelli | 2017-02-22 | 2 | -126/+398 | |
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: Be specific about where AxisError is raised | Eric Wieser | 2017-02-20 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | | | These were tested by temporarily removing the base classes from AxisError | |||||
* | | | | MAINT: Use normalize_axis_index in all python axis checking | Eric Wieser | 2017-02-20 | 2 | -15/+7 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 #8638 from juliantaylor/packbits-fix | Charles Harris | 2017-02-19 | 1 | -0/+9 | |
|\ \ \ \ | |/ / / |/| | | | BUG: fix wrong odd determination in packbits | |||||
| * | | | BUG: fix wrong odd determination in packbits | Julian Taylor | 2017-02-19 | 1 | -0/+9 | |
| | | | | | | | | | | | | | | | | closes gh-8637 | |||||
* | | | | Merge pull request #8633 from MSeifert04/boolean_arrays_in_ix__func | Eric Wieser | 2017-02-19 | 1 | -1/+14 | |
|\ \ \ \ | | | | | | | | | | | DOC: Mention boolean arrays in the ix_ documentation. | |||||
| * | | | | DOC: Mention boolean arrays in the ix_ documentation. | Michael Seifert | 2017-02-18 | 1 | -1/+14 | |
| | | | | | ||||||
* | | | | | Merge pull request #8631 from anntzer/fill_diagonal-typo | Eric Wieser | 2017-02-19 | 1 | -2/+2 | |
|\ \ \ \ \ | |_|/ / / |/| | | | | Fix typo in fill_diagonal docstring. | |||||
| * | | | | DOC: Fix typo in fill_diagonal docstring. | Antony Lee | 2017-02-18 | 1 | -2/+2 | |
| |/ / / | ||||||
* | | | | Merge pull request #8614 from eric-wieser/apply_along_axis-empty | Marten van Kerkwijk | 2017-02-18 | 2 | -1/+23 | |
|\ \ \ \ | |/ / / |/| | | | BUG: Don't leak internal exceptions when given an empty array | |||||
| * | | | BUG: Don't leak internal exceptions when given an empty array | Eric Wieser | 2017-02-13 | 2 | -1/+23 | |
| | | | | | | | | | | | | | | | | Fixes #7454 | |||||
* | | | | Merge pull request #8617 from eric-wieser/fix-8561 | Marten van Kerkwijk | 2017-02-14 | 4 | -12/+19 | |
|\ \ \ \ | | | | | | | | | | | BUG: Copy meshgrid after broadcasting | |||||
| * | | | | BUG: The broadcast shape of no things should be (), not ValueError | Eric Wieser | 2017-02-13 | 2 | -2/+2 | |
| | | | | | ||||||
| * | | | | BUG: Copy meshgrid after broadcasting, fixing #8561 | Eric Wieser | 2017-02-13 | 2 | -10/+17 | |
| |/ / / | | | | | | | | | | | | | 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 | |
| | | | ||||||
* | | | Merge pull request #8441 from eric-wieser/apply_along_axis-nd | Stephan Hoyer | 2017-02-11 | 2 | -68/+157 | |
|\ \ \ | | | | | | | | | BUG: Fix crash on 0d return value in apply_along_axis | |||||
| * | | | MAINT: Improve error-checking of axis argument | Eric Wieser | 2017-02-11 | 1 | -3/+2 | |
| | | | | | | | | | | | | | | | | Copied from the implementation in core.shape_base.stack | |||||
| * | | | TST: Verify apply_along_axis now works on masked arrays | Eric Wieser | 2017-02-11 | 1 | -0/+14 | |
| | | | | | | | | | | | | | | | | | | | | Note that this is not a full subsitute for np.ma.apply_along_axis, as that allows functions to return a mix of np.ma.masked and scalars | |||||
| * | | | MAINT: Transpose the result, rather than working with a transposed view | Eric Wieser | 2017-02-11 | 1 | -23/+34 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | .transpose does not specify that it must return a view, so subclasses (like np.ma.array) could otherwise break this. This exposes some more need for matrix special casing. | |||||
| * | | | BUG: Work around evil matrix.__array_prepare__ | Eric Wieser | 2017-02-11 | 2 | -4/+15 | |
| | | | | ||||||
| * | | | BUG: Call __array_prepare__ before __array_wrap__ | Eric Wieser | 2017-02-11 | 1 | -1/+4 | |
| | | | | ||||||
| * | | | MAINT: Use np.ndindex, which seems just as efficient | Eric Wieser | 2017-02-11 | 1 | -18/+8 | |
| | | | | ||||||
| * | | | BUG: Fix crash on 0d return value in apply_along_axis | Eric Wieser | 2017-02-11 | 2 | -64/+125 | |
| | | | | | | | | | | | | | | | | | | | | | | | | Also: ENH: Support arbitrary dimensionality of return value MAINT: remove special casing |