summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #429 from 87/fix_insertnjsmith2012-09-112-6/+17
|\ | | | | Fix for issues #392 and #378
| * TST: Add test for boolean insertHan Genuit2012-09-071-0/+2
| |
| * TST: Add extra test for multidimensional inserts.Han Genuit2012-09-071-0/+7
| |
| * BUG: Fix for issues #378 and #392Han Genuit2012-09-071-6/+8
| | | | | | | | | | | | This should fix the problems with numpy.insert(), where the input values were not checked for all scalar types and where values did not get inserted properly, but got duplicated by default.
* | Merge pull request #431 from njsmith/fix-travis-py24-buildnjsmith2012-09-111-1/+8
|\ \ | | | | | | FIX: use py24-compatible version of virtualenv on Travis
| * | FIX: use py24-compatible version of virtualenv on TravisNathaniel J. Smith2012-09-081-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | Travis recently upgraded to virtualenv 1.8, which has dropped support for Python 2.4. So, in our Python 2.4 setup script, we need to explicitly fetch and use virtualenv 1.7. Likewise for pip 1.1. File imported from the already-fixed version for patsy: https://github.com/pydata/patsy/blob/0316d2901f4195db06e8091c15f37d9fe4ad09de/.travis-make-py24-virtualenv.sh
* | | Merge pull request #430 from njsmith/test_pareto-fixnjsmith2012-09-111-1/+7
|\ \ \ | |/ / |/| | FIX: loosen numerical tolerance in test_pareto()
| * | FIX: loosen numerical tolerance in test_pareto()Nathaniel J. Smith2012-09-071-1/+7
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem was that in 32bit Ubuntu 12.04, one gets the following: > /home/njs/numpy/.tox/py27/local/lib/python2.7/site-packages/numpy/random/tests/test_random.py(363)test_pareto() -> np.testing.assert_array_almost_equal(actual, desired, decimal=15) (Pdb) actual[1, 0] 52828779.702948704 (Pdb) desired[1, 0] 52828779.702948518 and the test was comparing the numbers to 1e-14, which obviously failed. Fixes #424.
* | BUG: fix npymath install location.David Cournapeau2012-09-062-3/+2
| |
* | BUG: fix custom post_check.David Cournapeau2012-09-061-7/+7
| |
* | BUG: forgot to build _dotblas in bento build.David Cournapeau2012-09-062-1/+4
| |
* | REF: remove unused imports in bscript.David Cournapeau2012-09-061-3/+0
|/
* Update numpy/core/code_generators/ufunc_docstrings.pynjsmith2012-09-041-1/+1
| | | Revert PR #423 (which was based on a misunderstanding).
* Merge pull request #423 from adamlwgriffiths/masternjsmith2012-09-041-1/+1
|\ | | | | Fix typo in documentation (101 instead of 10).
| * Fix typo in documentation (101 instead of 10).Adam Griffiths2012-09-041-1/+1
|/ | | | | | | | Examples demonstrate using an array with (-10, 0, 10), but this specific example has a typo that lists the last number as 101. This is reflected in the diagrams having axis labeled from -10:+10.
* Merge pull request #417 from certik/fix416Ondřej Čertík2012-09-021-7743/+8196
|\ | | | | FIX: Regenerate mtrand.c with Cython 0.17
| * FIX: Regenerate mtrand.c with Cython 0.17Ondřej Čertík2012-09-021-7743/+8196
|/ | | | Fixes #416
* Merge pull request #397 from certik/fix2189Ondřej Čertík2012-09-021-0/+10
|\ | | | | BUG: Add a test for Ticket #2189
| * FIX: Add a test for Ticket #2066Ondřej Čertík2012-08-311-0/+4
| |
| * BUG: Add a test for Ticket #2189Ondřej Čertík2012-08-311-0/+6
| |
* | Merge pull request #376 from cgohlke/patch-2Ondřej Čertík2012-09-022-1/+6
|\ \ | | | | | | Allow long numbers in numpy.rec.array formats string
| * | Remove test_recarray_from_long_formatscgohlke2012-08-071-8/+0
| | |
| * | Add test for long number in shape specifier of dtype stringcgohlke2012-08-071-0/+5
| | |
| * | Add test for long numbers in numpy.rec.array formats stringcgohlke2012-08-061-0/+8
| | |
| * | Allow long numbers in numpy.rec.array formats stringcgohlke2012-08-061-1/+1
| | |
* | | Merge pull request #404 from certik/pr401_fixOndřej Čertík2012-09-021-2/+1
|\ \ \ | | | | | | | | FIX: simplify the import statement
| * | | FIX: simplify the import statementOndřej Čertík2012-08-311-2/+1
| | | |
* | | | Merge pull request #393 from stefanv/ndindexnjsmith2012-09-022-36/+17
|\ \ \ \ | |_|_|/ |/| | | Improve ndindex execution speed.
| * | | Retain backward compatibility. Enforce C order.Stefan van der Walt2012-09-021-1/+9
| | | |
| * | | Improve ndindex execution speed.Stefan van der Walt2012-09-022-42/+15
|/ / /
* | | Merge pull request #405 from certik/pr400_fixOndřej Čertík2012-08-312-9/+26
|\ \ \ | | | | | | | | BUG: Fix ticket #1588/gh issue #398, refcount error in clip
| * | | BUG: Add a test for Ticket #1588Ondřej Čertík2012-08-311-0/+9
| | | | | | | | | | | | | | | | The bug was fixed by the previous patch.
| * | | BUG: Fix ticket #1588/gh issue #398, refcount error in clipMark Wiebe2012-08-311-9/+17
|/ / / | | | | | | | | | | | | | | | | | | This patch enforces a strict dichotomy for the variables 'indescr' and 'newdescr', so they are either NULL, or they own a reference. Following the consequences of this allowed the reference error to be tracked down.
* | | Merge pull request #395 from certik/fix369Ondřej Čertík2012-08-312-1/+29
|\ \ \ | |/ / |/| | FIX: bug in np.where and recarray swapping
| * | FIX: bug in np.where and recarray swappingOndřej Čertík2012-08-292-1/+29
| | | | | | | | | | | | | | | | | | Fixes #369 and the Ticket 2185 Thanks to @seberg for providing the patch.
* | | Merge pull request #401 from jayvius/get-view-fixOndřej Čertík2012-08-312-1/+10
|\ \ \ | | | | | | | | BUG: Fix Ticket #2187
| * | | Fix returned copyJay Bourque2012-08-312-1/+10
|/ / / | | | | | | | | | Fix returned copy so that copy of view with offsets copies only fields in view, not all the fields from original array. Also add unit tests to make sure this doesn't break when copy is fully deprecated in favor of returning a view.
* | | Merge pull request #390 from rgommers/silence-deprecation-warningnjsmith2012-08-311-4/+14
|\ \ \ | |/ / |/| | MAINT: silence DeprecationWarning in np.safe_eval().
| * | MAINT: silence DeprecationWarning in np.safe_eval().Ralf Gommers2012-08-221-4/+14
| | | | | | | | | | | | | | | It comes from the Python compiler package, which isn't available on Python 3.x. We already handle that issue by instead importing the ast module.
* | | Merge pull request #386 from certik/yop_atlasDavid Cournapeau2012-08-221-3/+3
|\ \ \ | |/ / |/| | pavement.py: rename "yop" to "atlas"
| * | pavement.py: rename "yop" to "atlas"Ondrej Certik2012-08-141-3/+3
|/ /
* | BUG: fix bento build.David Cournapeau2012-08-111-1/+1
|/
* Merge pull request #373 from cianci/concatenate_leak_fixCharles Harris2012-08-041-0/+2
|\ | | | | Fix memory leak in concatenate.
| * Fix memory leak in concatenate.Chris2012-08-031-0/+2
| | | | | | | | Temporary array was not being freed after use.
* | Merge pull request #372 from certik/py3.3-cleanerTravis E. Oliphant2012-08-033-2/+39
|\ \ | |/ |/| A fix for the €˜PyUnicodeObject Python 3.3
| * Use PyUnicode_DecodeUTF32()Ondrej Certik2012-08-031-18/+11
| | | | | | | | | | This function handles the swapping automatically and it returns a unicode object in one of: UCS1, UCS2 or UCS4 internal Python format.
| * Follow the C guidelinesOndrej Certik2012-08-031-2/+4
| |
| * FIX: Make sure the tests produce valid unicodeOndrej Certik2012-08-031-2/+4
| | | | | | | | | | The tests are testing byte order for unicode, so we can only use such unicode data, so that both versions (swapped and unswapped) are valid unicode.
| * FIX: Fixes the PyUnicodeObject problem in py-3.3Ondrej Certik2012-08-032-0/+40
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously NumPy did not compile in Python 3.3 due to the changes in PEP 393. This patch simply calls PyUnicode_FromKindAndData() from the new Python 3.3 API and possibly swaps the data before calling it if needed. The data in NumPy is always UCS4 and the PyUnicode_FromKindAndData() internally converts it to UCS1, UCS2 or UCS4 depending on the maximum code point. The following tests now fail, because they produce invalid unicode in the process (will be fixed in the next patch): ====================================================================== ERROR: Check byteorder of 0-dimensional objects ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/core/tests/test_unicode.py", line 277, in test_values0D self.assertTrue(ua[()] != ua2[()]) SystemError: invalid maximum character passed to PyUnicode_New ====================================================================== ERROR: Check byteorder of multi-dimensional objects ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/core/tests/test_unicode.py", line 297, in test_valuesMD self.assertTrue(ua[0,0,0] != ua2[0,0,0]) SystemError: invalid maximum character passed to PyUnicode_New ====================================================================== ERROR: Check byteorder of single-dimensional objects ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/core/tests/test_unicode.py", line 286, in test_valuesSD self.assertTrue(ua[0] != ua2[0]) SystemError: invalid maximum character passed to PyUnicode_New ====================================================================== ERROR: Check byteorder of 0-dimensional objects ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/core/tests/test_unicode.py", line 277, in test_values0D self.assertTrue(ua[()] != ua2[()]) SystemError: invalid maximum character passed to PyUnicode_New ====================================================================== ERROR: Check byteorder of multi-dimensional objects ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/core/tests/test_unicode.py", line 297, in test_valuesMD self.assertTrue(ua[0,0,0] != ua2[0,0,0]) SystemError: invalid maximum character passed to PyUnicode_New ====================================================================== ERROR: Check byteorder of single-dimensional objects ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/core/tests/test_unicode.py", line 286, in test_valuesSD self.assertTrue(ua[0] != ua2[0]) SystemError: invalid maximum character passed to PyUnicode_New
* Merge pull request #371 from rlamy/bytes-pickleTravis E. Oliphant2012-08-022-2/+11
|\ | | | | Copy bytes object for small arrays when unpickling an array