summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | | | | BUG: fixed regression in np.histogram which caused input floating-point ↵Thomas Robitaille2015-07-272-1/+8
| |/ / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | values to be modified
* | | | | | | | | | Merge pull request #6055 from seberg/test-warn-alwaysRalf Gommers2015-07-261-3/+3
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | TST: Make default for all warnings "always"
| * | | | | | | | | | TST: Make default for all warnings "always"Sebastian Berg2015-07-081-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should make it easier in some cases, since a warning caught in some test (but not important/not causing failure), will not shadow later tests. In principle the best thing is probably to always check the number of warnings raised, so that you notice when a new warning shows up in a test, though there may be other corner cases here.
* | | | | | | | | | | Merge pull request #6052 from insertinterestingnamehere/lib_fixRalf Gommers2015-07-261-1/+1
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | BUG: Fix handling of dependencies between libraries
| * | | | | | | | | | | BUG: Allow libraries to be used as dependencies for other libraries whenIan Henriksen2015-07-131-1/+1
| |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | compiling with numpy.distutils. For example, something like this will now work as a configuration function: def configuration(): config = Configuration() config.add_library('mylib1', sources=['mylib1.f']) config.add_library('mylib2', sources=['mylib2.f'], libraries=['mylib1']) config.add_extension('pymodule', sources=['pymodule.c'], libraries=['mylib2']) return config Arbitrary handling of dependencies between libraries is still not supported, but this should make some basic cases work properly.
* | | | | | | | | | | Merge pull request #6111 from charris/fix-getargspecRalf Gommers2015-07-261-7/+10
|\ \ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / / |/| | | | | | | | | | MAINT: Use numpy versions of getargspec, formatargspec.
| * | | | | | | | | | MAINT: Use numpy versions of getargspec, formatargspec.Charles Harris2015-07-241-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Both of these functions will be removed in Python 3.6 and were deprecated in 3.5. The numpy versions are not full versions, but hopefully suffice.
* | | | | | | | | | | STY: PEP8 and pyflakes fixes for numpy/tests.Charles Harris2015-07-252-25/+29
| | | | | | | | | | |
* | | | | | | | | | | STY: PEP8 and pyflakes fixes for numpy/lib/testsCharles Harris2015-07-253-237/+296
| | | | | | | | | | |
* | | | | | | | | | | STY: PEP8 and pyflakes fixes for numpy/linalg/tests.Charles Harris2015-07-253-105/+154
| | | | | | | | | | |
* | | | | | | | | | | STY: PEP8 and pyflakes fixes for numpy/matrixlib/tests.Charles Harris2015-07-253-110/+110
| | | | | | | | | | |
* | | | | | | | | | | STY: PEP8 and pyflakes fixes for numpy/distutils.Charles Harris2015-07-2510-36/+40
| | | | | | | | | | |
* | | | | | | | | | | STY: PEP8 and pyflakes fixes for numpy/f2py/tests.Charles Harris2015-07-2511-258/+298
| | | | | | | | | | |
* | | | | | | | | | | Merge pull request #6046 from charris/pep8-and-pyflakes-cleanupsCharles Harris2015-07-2515-1250/+1438
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PEP8 and pyflakes fixups for numpy/ma/*.py and numpy/ma/tests/*.py Merge cleanups prior to 1.10 release.
| * | | | | | | | | | | MAINT: Continue to export some testing functions from ma.testutils.Charles Harris2015-07-251-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is for backward compatibility. We may want to add more testing functions if other folks run into problems in the 1.10 release.
| * | | | | | | | | | | STY,MAINT: Run pyflakes and pep8 on numpy/ma/tests/*.Charles Harris2015-07-256-237/+266
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also fix "*" imports. The formatting of test arrays is not fixed for multiple spaces following "," and other violations that are common in tests. To be precise, E241 and E201 are added to the errors that are excluded.
| * | | | | | | | | | | BUG: Fix imports in test_io.py and test_recfunctions.py.Charles Harris2015-07-042-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Those test functions were incorrectly importing test functions from numpy/ma/testutils that were actually not defined there, but rather in numpy/testing. That did not cause an error when testutils was '*' importing all the test functions, but it was deceptive as some of the functions might appear to support masked arrays when they do not.
| * | | | | | | | | | | DEP,ENH: Deprecate numpy.ma.rank and add numpy.ma.ndim.Charles Harris2015-07-041-5/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The np.rank was deprecated in 1.9.0. Add test for deprecation.
| * | | | | | | | | | | STY,MAINT: PEP8 and pyflakes fixes for numpy/ma/*.pyCharles Harris2015-07-048-999/+1135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also * Add __all__ to numpy/ma/testutils.py * Remove various stray "#" We might want to consider removing/refactoring both numpy/ma/bench.py and numpy/ma/timer_comparison.
* | | | | | | | | | | | Merge pull request #6047 from charris/pep8-pyflakes-numpy.core.testsCharles Harris2015-07-2530-1989/+2032
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | PEP8 and pyflakes fixups for numpy/core/tests/*.py
| * | | | | | | | | | | | MAINT: Merge the np.dot tests in test_multiarray and test_numeric.Charles Harris2015-07-252-133/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The dot tests in test_numeric have not done anything useful since the _dotblas module was merged into multiarray. There used to be two potentially different dot functions, one from _dotblas and the other from multiarray, that the tests compared against each other. Because both functions are now the same that no longer serves any purpose, so those tests have been modified to check against known results and moved into test_multiarray with the other dot tests. The dot tests could use improvement. They don't check all the types, exceptions, and such. But fixing them exceeds the scope of the present work.
| * | | | | | | | | | | | STY: pyflakes fixes for numpy/core/tests/*.py.Charles Harris2015-07-2528-1120/+1165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Many of these fixups are result from removing `from x import *` imports. The rest are mostly unused variable fixes.
| * | | | | | | | | | | | MAINT: Remove redundant tests from test_multiarray.py.Charles Harris2015-07-251-147/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were two classes named TestArrayPriority in test_multiarray.py, both of which tested the use of the __array_priority__ attribute. Because the later addition tests more functions than the earlier one and for more dtypes, the earlier version is removed.
| * | | | | | | | | | | | STY: PEP8 fixes for numpy/core/tests/*.pyCharles Harris2015-07-2526-666/+810
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fixes do not include the pretty formatting of array data. Lond lines are also left intact at this point.
* | | | | | | | | | | | | Merge pull request #6112 from charris/fix-void-pointer-in-memsetJaime2015-07-241-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / |/| | | | | | | | | | | | BUG: Fix misuse of void* in arraytypes.c.src.
| * | | | | | | | | | | | BUG: Fix misuse of void* in arraytypes.c.src.Charles Harris2015-07-241-1/+1
| | |/ / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A char offset was being added to a void* in the UNICODE_setitem function. Closes #6110, which also had the fix. Thanks @seek.
* | | | | | | | | | | | Merge pull request #6077 from ndjensen/masterseberg2015-07-231-7/+11
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | ENH skip NPY_ALLOW_C_API for UFUNC_ERR_PRINT
| * | | | | | | | | | | | ENH skip NPY_ALLOW_C_API for UFUNC_ERR_PRINTNate Jensen2015-07-221-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GIL unnecessary when numpy floating point error handling is set to print potential micro-optimization when error handling is set to print alleviates (but does not fix) #5856 deadlock with sub-interpreters addressed comments and initial test failed Change-Id: I0414df8c5dca131e1f8c8d867791ba63cf992b63
* | | | | | | | | | | | | ENH: Faster algorithm for computing histograms with equal-size binsThomas Robitaille2015-07-232-26/+113
| |/ / / / / / / / / / / |/| | | | | | | | | | |
* | | | | | | | | | | | BUG: bincount overflow if arrays len >= 2^31Jaime Fernandez2015-07-211-2/+2
| | | | | | | | | | | |
* | | | | | | | | | | | Merge pull request #6098 from ahaldane/commastring_boolseberg2015-07-212-1/+7
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | MAINT: allow '?' in structured dtype commastring specification
| * | | | | | | | | | | | MAINT: allow '?' in structured dtype commastring specificationAllan Haldane2015-07-202-1/+7
| | |_|_|_|_|_|_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Code like `dtype('?,?,?')` now works.
* | | | | | | | | | | | Merge pull request #6096 from novocaine/vs_2015_no_wpoCharles Harris2015-07-201-0/+9
|\ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / |/| | | | | | | | | | | remove /GL for vs2015 in check_long_double_representation
| * | | | | | | | | | | remove /GL for vs2015 in check_long_double_representationJames Salter2015-07-201-0/+9
| | |_|_|/ / / / / / / | |/| | | | | | | | |
* | | | | | | | | | | MAINT: missing decref in PyArray_ViewAllan Haldane2015-07-181-1/+2
|/ / / / / / / / / /
* | | | | | | | | | BUG: Fix tiling of zero-sized arrays numpy/numpy#6089 and add test case.Dimas Abreu Dutra2015-07-172-10/+13
| | | | | | | | | |
* | | | | | | | | | MAINT: adapt parallel build option names to python3.5Julian Taylor2015-07-164-22/+22
|/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | python3.5 uses --parallel instead of --jobs
* | | | | | | | | BUG: Fixed import error on Windows from not correctly defining aIan Henriksen2015-07-131-20/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function listed in __all__ for numpy/testing/utils.py.
* | | | | | | | | Merge pull request #6049 from charris/pep8-numpy-testingRalf Gommers2015-07-128-127/+169
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | PEP8 and pyflakes fixups for numpy/testing and numpy/testing/tests
| * | | | | | | | | MAINT: pyflakes for numpy/testing, numpy/testing/tests.Charles Harris2015-07-054-53/+89
| | | | | | | | | |
| * | | | | | | | | STY: PEP8 fixes for numpy/testing numpy/testing/tests.Charles Harris2015-07-058-81/+87
| |/ / / / / / / /
* | | | | | | | | Merge pull request #6065 from gthomsen/warned-cast-missing-gilJaime2015-07-112-2/+23
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | BUG: Fixed downcasting with boolean indexing.
| * | | | | | | | | BUG: Fixed downcasting with boolean indexing.Greg Thomsen2015-07-112-2/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed downcasting complex types to a real type using boolean indices which previously caused a segfault. Acquiring the appropriate dtype transfer function raises a warning that requires holding the GIL, which had been released in a previous revision. Now the GIL is held while the transfer function is acquired. This fixes issue #5896.
* | | | | | | | | | BUG: made view of new array to fix ix_ bugmlai2015-07-112-1/+10
|/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | closes gh-6062 done with help of Sebastian Berg! =)
* | | | | | | | | EHN: raise error for negative 'num' in linspace.Bertrand2015-07-082-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closing #5937
* | | | | | | | | Merge pull request #6031 from pitrou/argmin_natJaime2015-07-083-30/+96
|\ \ \ \ \ \ \ \ \ | |_|/ / / / / / / |/| | | | | | | | BUG: fix argmin() with NaTs
| * | | | | | | | Add tests for leading NaT values, and fix np.min() bugAntoine Pitrou2015-07-012-19/+27
| | | | | | | | |
| * | | | | | | | BUG: fix argmin() with NaTsAntoine Pitrou2015-07-012-11/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | np.min() skips NaT values, but np.argmin() wouldn't: since the internal representation of NaT is smaller than every other datetime64 or timedelta64 value, np.argmin() would return results inconsistent with np.min(). Closes #6030.
* | | | | | | | | MAINT: Fix some pyflakes warnings in numpy/core/*.pyCharles Harris2015-07-059-75/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These fixes are not agressive as some of the code is complicated and it is better to be careful. The files numeric.py and numerictypes.py are not easily analysed and the latter is self modifying. Pyflakes generates a number of invalid warnings for those files.
* | | | | | | | | STY: PEP8 fixes for numpy/core/*.pyCharles Harris2015-07-0514-204/+216
| |/ / / / / / / |/| | | | | | |