Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | BUG: fix padding an empty array in reflect mode. | Iryna Shcherbina | 2017-09-01 | 2 | -3/+15 |
| | | | | Check that axes with non-zero padding are non-empty. | ||||
* | Updates order of parameters in save docstring to match function parameter order | James Bourbeau | 2017-08-30 | 1 | -2/+2 |
| | |||||
* | Merge pull request #9601 from MSeifert04/doc_rot90_added_directive | Charles Harris | 2017-08-24 | 1 | -2/+2 |
|\ | | | | | DOC: rot90 wrongly positioned versionadded directive. | ||||
| * | DOC: rot90 wrongly positioned versionadded directive. [skip ci] | Michael Seifert | 2017-08-25 | 1 | -2/+2 |
| | | |||||
* | | BUG: fix infinite loop when creating np.pad on an empty array | Iryna Shcherbina | 2017-08-24 | 2 | -0/+7 |
|/ | |||||
* | Merge pull request #9524 from charris/add_init_to_test_directories | Charles Harris | 2017-08-12 | 1 | -0/+0 |
|\ | | | | | TST, MAINT: Add `__init__.py` files to tests directories. | ||||
| * | TST, MAINT: Add `__init__.py` files to tests directories. | Charles Harris | 2017-08-06 | 1 | -0/+0 |
| | | | | | | | | | | | | | | | | This allows pytest to run with duplicate test file names. Note that `python <path-to-test-file>` no longer works with this change, nor will a simple `pytest numpy`, because numpy is imported from the numpy repository. However, `python runtests.py` and `>>> numpy.test()` are still available. | ||||
* | | MAINT: Use moveaxis instead of rollaxis internally (#9475) | Nico Schlömer | 2017-08-10 | 4 | -11/+11 |
|/ | | | | | Also add a hint to the documentation advising the use of moveaxis over rollaxis. Tests for rollaxis are left alone. | ||||
* | Merge pull request #9522 from eric-wieser/stop-using-obj2sctype | Charles Harris | 2017-08-06 | 2 | -3/+8 |
|\ | | | | | BUG: Fix problems with obj2sctype | ||||
| * | BUG: Don't allow an array to be passed as the dtype argument | Eric Wieser | 2017-08-06 | 2 | -3/+8 |
| | | |||||
* | | Merge pull request #9505 from eric-wieser/fix-issubdtype | Charles Harris | 2017-08-06 | 4 | -7/+7 |
|\ \ | |/ |/| | BUG: issubdtype is inconsistent on types and dtypes | ||||
| * | MAINT: Stop using the undocumented coercion-then-downcast feature of subdtype | Eric Wieser | 2017-08-05 | 4 | -7/+7 |
| | | |||||
* | | MAINT: Remove `level=` keyword from test arguments. | Charles Harris | 2017-08-05 | 2 | -19/+17 |
|/ | | | | | | I don't know what that argument was used for, but it showis up in old tests and is not explicitly used within the tests. I assume it was part of an old testing framework and is now longer needed. | ||||
* | MAINT/DOC: Use builtin when np.{x} is builtins.{x}. | Eric Wieser | 2017-08-05 | 10 | -57/+57 |
| | | | | | | | 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 | 2 | -23/+84 |
| | | | | | | | | | | | | | 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: Make `setxor1d' a bit clearer and speed it up | wufangjie | 2017-07-28 | 1 | -5/+1 |
| | |||||
* | make `setxor1d' a bit clear and speed up | wufangjie | 2017-07-27 | 1 | -2/+3 |
| | | | We need to find the index which is not the same with the left and right, I think np.logical_and's meaning is more clear and I test this got a speed up | ||||
* | Merge pull request #9434 from charris/remove-unittest-dependencies | Charles Harris | 2017-07-24 | 17 | -328/+327 |
|\ | | | | | Remove unittest dependencies | ||||
| * | TST: Remove unittest dependencies in numpy/lib/tests. | Charles Harris | 2017-07-24 | 17 | -328/+327 |
| | | |||||
* | | 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 | 2 | -1/+7 |
|/ | | | | This isn't the case for `diff` | ||||
* | Merge pull request #9362 from charris/rearrange-testing-module | Charles Harris | 2017-07-06 | 3 | -5/+3 |
|\ | | | | | ENH: Rearrange testing module to isolate nose dependency. | ||||
| * | MAINT: Rearrange files in numpy/testing module. | Charles Harris | 2017-07-04 | 3 | -5/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The aim here is to separate out the nose dependent files prior to adding pytest support. This could be done by adding new files to the general numpy/testing directory, but I felt that it was to have the relevant files separated out as it makes it easier to completely remove nose dependencies when needed. Many places were accessing submodules in numpy/testing directly, and in some cases incorrectly. That presented a backwards compatibility problem. The solution adapted here is to have "dummy" files whose contents will depend on whether of not pytest is active. That way the module looks the same as before from the outside. In the case of numpy itself, direct accesses have been fixed. Having proper `__all__` lists in the submodules helped in that. | ||||
* | | DOC: Add examples for complex dtypes | Eric Wieser | 2017-07-03 | 1 | -13/+16 |
| | | | | | | | | | | | | Also remove redundancy between the function and return value descriptions [ci skip] | ||||
* | | Merge pull request #9343 from eric-wieser/recfunction-join-dtype | Allan Haldane | 2017-07-01 | 2 | -65/+189 |
|\ \ | | | | | | | BUG: recfunctions fail in a bunch of ways due to using .descr | ||||
| * | | MAINT: Avoid one more use of descr | Eric Wieser | 2017-07-01 | 1 | -11/+6 |
| | | | |||||
| * | | MAINT: remove tuple<->list conversion dance | Eric Wieser | 2017-07-01 | 1 | -30/+31 |
| | | | |||||
| * | | TST: join_by now works for dtypes with padding too | Eric Wieser | 2017-07-01 | 1 | -0/+16 |
| | | | | | | | | | | | | Once again, thanks to not using .descr | ||||
| * | | MAINT: Shortcut for flat dtypes wasn't used for scalar dtypes | Eric Wieser | 2017-07-01 | 1 | -3/+3 |
| | | | |||||
| * | | BUG: flatten_descr returns string not dtype for scalar dtype | Eric Wieser | 2017-07-01 | 1 | -1/+1 |
| | | | |||||
| * | | MAINT: Stop using .descr in recfunctions | Eric Wieser | 2017-07-01 | 1 | -18/+22 |
| | | | | | | | | | | | | This change shouldn't affect behaviour - all old uses were still correct. | ||||
| * | | TST: Add failing test for mismatch of key type | Eric Wieser | 2017-07-01 | 1 | -1/+16 |
| | | | |||||
| * | | BUG: stack_arrays fails for subdtypes | Eric Wieser | 2017-07-01 | 2 | -5/+34 |
| | | | | | | | | | | | | Again, fixed by not using descr | ||||
| * | | BUG: recfunctions.join_by fails when key is a subdtype | Eric Wieser | 2017-07-01 | 2 | -11/+61 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | It seems that working with .descr is a generally terrible idea. Instead we introduce `get_fieldspec`, which returns a list of 2-tuples, encapsulating subdtypes. This also means that np.core.test_rational.rational survives a roundtrip - its .descr is 'V8', which ddoesn't survive | ||||
| * | | BUG: recfunctions.join_by fails for colliding values with different dtypes | Eric Wieser | 2017-07-01 | 2 | -11/+25 |
| | | | | | | | | | | | | Fixes #9338 | ||||
| * | | MAINT: use set operators for brevity | Eric Wieser | 2017-07-01 | 1 | -3/+3 |
| |/ | |||||
* | | DOC: Improve documentation of common_type (#9344) | Gunjan | 2017-07-01 | 1 | -2/+2 |
|/ | | | Fixes gh-9326 | ||||
* | TST: Verify that join_by doesn't choke on subdtypes | Eric Wieser | 2017-06-27 | 1 | -0/+10 |
| | |||||
* | MAINT: Fix alerts from http://lgtm.com (#9292) | Jean Helie | 2017-06-26 | 1 | -1/+1 |
| | | | | | | | * make exception raising 2/3 compatible * remove unnecesary else statement after while loop without break clause * ensure file is always enclosed even in the event of an exception * ensure list comprehension variable does not override enclosing loop variable | ||||
* | Merge pull request #9220 from eric-wieser/simplify-nanfuncs | Charles Harris | 2017-06-22 | 1 | -43/+53 |
|\ | | | | | MAINT: Factor out code duplicated by nanmedian and nanpercentile | ||||
| * | MAINT: Factor out code duplicated by nanmedian and nanpercentile | Eric Wieser | 2017-06-21 | 1 | -43/+53 |
| | | |||||
* | | 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 | 2 | -6/+20 |
| | | |||||
* | | DOC: BLD: fix lots of Sphinx warnings/errors. | Ralf Gommers | 2017-06-10 | 2 | -2/+2 |
|/ | |||||
* | Merge pull request #9214 from eric-wieser/no-one-arg-where | Charles Harris | 2017-06-03 | 3 | -6/+7 |
|\ | | | | | MAINT: Don't internally use the one-argument where | ||||
| * | MAINT: Don't internally use the one-argument where | Eric Wieser | 2017-06-03 | 3 | -6/+7 |
| | | | | | | | | nonzero is a clearer spelling | ||||
* | | BUG: KeyboardInterrupt is swallowed all over the place | Eric Wieser | 2017-06-03 | 7 | -10/+10 |
|/ | | | | Bare except is very rarely the right thing | ||||
* | Merge pull request #9212 from eric-wieser/tidy-function_base | Julian Taylor | 2017-06-03 | 2 | -9/+4 |
|\ | | | | | MAINT: Combine similar branches | ||||
| * | MAINT: Combine similar branches | Eric Wieser | 2017-06-03 | 2 | -9/+4 |
| | | |||||
* | | 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 |