summaryrefslogtreecommitdiff
path: root/numpy/lib/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #261 from charris/backport-libRalf Gommers2012-05-044-11/+133
|\ | | | | Backport numpy.lib bug fixes.
| * TST: fix string comparison test failures on Windows for Python 2.5.Ralf Gommers2012-05-021-4/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | This is caused by the inconsistent floating point handling of Python itself. On Windows with 2.5: >>> "%s" % 1e-6 '1e-006' With 2.6: >>> "%s" % 1e-6 '1e-06' Reviewed as PR-225.
| * BUG: ticket #1936, loadtxt: fix extra nesting for subarray dtypes.Mark Wiebe2012-04-291-0/+20
| |
| * BUG: ticket #1793, fix failing npyio test under py3k. Thanks to Derek Homeier.Ralf Gommers2012-04-291-4/+11
| |
| * BUG: ticket #1848, make tril/triu return the same dtype as the original array.Fabian Pedregosa2012-04-291-0/+12
| | | | | | | | | | | | | | This should fix: * http://projects.scipy.org/numpy/ticket/1848 * http://projects.scipy.org/scipy/ticket/1449
| * BUG: ticket #1899, fixed histogramdd bug with empty inputs.David Huard2012-04-292-2/+8
| |
| * BUG: ticket #1387, allow bincount to accept empty arrays.Skipper Seabold2012-04-292-4/+11
| |
| * BUG: ticket #1573, savetxt now handles complex arrays.Paul Anton Letnes2012-04-291-0/+33
| |
| * ENH: ticket #2048, lib: break reference cycle in NpzFile (#2048)Pauli Virtanen2012-04-291-0/+18
| | | | | | | | | | This allows these objects to be freed by refcount, rather than requiring the gc, which can be useful in some situations.
* | BUG: ticket #1747, make np.median() work for 0-D arrays.Ralf Gommers2012-04-261-0/+11
|/
* use np.atleast_Nd() to boost dimensions to ndminDerek Homeier2011-05-071-2/+16
|
* changed ndmin option in loadtxt to return shape (1, X.size) for single-row ↵Derek Homeier2011-05-071-2/+8
| | | | inputs
* BUG: Python 2.4 doesn't accept the construction class foo():Charles Harris2011-04-051-3/+3
|
* BUG: ticket #1071, fix loadtxt to handle tab delimited data with missingDerek Homeir2011-04-041-8/+14
| | | | values in the last column and add test for same.
* ENH: Let genfromtxt accept generators as text sources. Add testCharles Harris2011-04-031-1/+9
| | | | for that case.
* BUG: Fix strings for Python 3k.Charles Harris2011-04-031-1/+1
|
* ENH: ticket #1616, let loadtxt accept generators in additions toCharles Harris2011-04-031-0/+7
| | | | file names and file like objects. Add test for for new functionality.
* BUG: fix test issues in test_twodim_base.py. Simplify and make tests run.Ralf Gommers2011-04-031-64/+60
|
* ENH: add ndmin keyword to loadtxt. Closes #1562.Ralf Gommers2011-04-031-0/+17
| | | | Thanks to Paul Anton Letnes and Derek Homeier.
* ENH: return empty array from loadtxt for an empty file. Closes #1752.Ralf Gommers2011-04-031-2/+7
| | | | | | Thanks to Paul Anton Letnes and Derek Homeier. (backport of e340e66)
* TST: add test for ticket #1458.Charles Harris2011-04-021-1/+12
|
* BUG: ticket #1428, allow int64 and uint64 integer types to be specified inCharles Harris2011-04-021-0/+16
| | | | genfromtxt.
* BUG: ticket #1565, fix conversion of int64 and uint64 types by loadtxt.Christoph Gohlke2011-04-021-0/+16
| | | | Add some tests for these types.
* BUG: make histogramdd work with infinite size bins. Closes #1788.Ralf Gommers2011-04-021-0/+25
| | | | | | | Also add more informative error messages for wrongly specified bins, for both histogram and histogram2d/dd. (backport of fdf84d9)
* BUG: handle empty inputs in cov and corrcoef. Closes #1773.Ralf Gommers2011-04-021-0/+14
| | | | (backport of 1dcf0c9)
* BUG: open genfromtxt file as binary; add test for filename use. FixesMatthew Brett2011-03-301-1/+20
| | | | ticket #1607.
* DEP: deprecate normed kw in histogram and restore its old behavior. IntroduceRalf Gommers2011-03-301-8/+19
| | | | | | | | | | | | | | | | | density kw. This reverts part of the following commits: 3743430e 400a2a67 3743430e Behavior for normed keyword is again the same as it was in Numpy 1.5. The desired behavior (probability density) is implemented by the new density keyword, which reflects the functionality better than "normed". For a discussion on this issue, see the Numpy mailing list thread started on Aug 6th, 2010. (backport of 3ebc348)
* ENH: Make all histogram functions work with empty input.Ralf Gommers2011-03-272-2/+13
| | | | (backport of 2af2e60f)
* API: Rename 'coords' to 'multi-index' in ravel_coords and iterator APIMark Wiebe2011-03-141-22/+22
|
* TST: fix ResourceWarning under Python 3.2rgommers2011-03-111-0/+1
|
* DEP: remove deprecated np.lib.ufunclike.log2 function.rgommers2011-03-111-12/+1
|
* DEP: remove deprecated get_numpy_include.rgommers2011-03-111-3/+1
|
* DEP: remove unique1d, setmember1d and intersect1d_nu.rgommers2011-03-111-42/+3
|
* BUG: Use isnan to test for nan, avoids problems with signed nans.Charles Harris2011-03-071-40/+41
| | | | Replace assert with assert_. Cleanup trailing whitespace.
* TST: clean up some ResourceWarnings from python 3.2.rgommers2011-03-023-17/+27
| | | | | Also make the sys.stdout temporary redirection in one of the tests a little more robust. That is still necessary, because np.who is very noisy.
* TST: replace assert with assert_rgommers2011-03-021-15/+15
|
* TST: update namespace usage in lib.polynomial doctests.rgommers2011-03-011-11/+8
|
* ENH: index_tricks: Implement unravel_index and ravel_coords functions in CMark Wiebe2011-02-101-5/+62
|
* ENH: core: Add new GetArrayParamsFromObject API function (fixes #1081)Mark Wiebe2011-02-061-1/+1
| | | | | | | | | This function allows code to query an object's "innate" type and shape, without actually creating a NumPy array out of it. PyArray_FromAny has been changed to use this function, as an assurance that its implementation is correct. This also fixes the known failure in test_regression.py.
* Merge branch 'new_iterator' - new iterator, ufunc update, restore 1.5 ABIMark Wiebe2011-01-282-6/+27
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New Iterator - Read doc/neps/new-iterator-ufunc.rst. UFunc Update - Change all ufunc functions to use the new iterator. This replaces the inline buffering with iterator buffering, except for the reductions and generalized ufunc which use updateifcopy at the moment. Also adds out= and order= parameters to all ufuncs. Restore 1.5 ABI - This was done by moving the new type numbers to the end of the type enumeration, and replacing all type promotion code with a table-based approach. The ArrFuncs was restored by putting the new type cast functions into the cast dictionary, originally designed just for custom types. Conflicts: numpy/core/src/multiarray/ctors.c numpy/core/tests/test_regression.py
| * ENH: core: Shuffle type numbers so any new ones go on the end.Mark Wiebe2011-01-251-5/+18
| |
| * ENH: core: Implement PyArray_CopyInto using the new iteratorMark Wiebe2011-01-161-1/+9
| | | | | | | | | | | | | | | | This change also uses the dtype conversion code implemented for new iterator buffering, which differs slightly from the previous casting behavior. In particular, fields are matched up by name instead of position, so code depending on that behavior breaks. The loadtxt function has been fixed to not depend on this casting behavior.
* | ENH: Add minlength keyword to bincount. Patch from ticket #1595.David Warde-Farley2011-01-101-0/+15
|/
* Apply patch by bsouthey in Ticket #1475 to turn off appropriate tests when ↵chanley2010-12-271-1/+8
| | | | | | | ctypes is not installed. This is of particular importance to STScI since this test is breaking our nightly build/test setup.
* TST: Add regression test for ticket #1676.Charles Harris2010-11-241-0/+12
|
* genfromtxt: Taking more adequate testing values when updating converters: ↵pierregm2010-11-131-0/+9
| | | | bug #1665
* Fix bug #1656pierregm2010-11-131-0/+7
|
* Fixing genfromtxt: names w/ usecols (bug #1636)pierregm2010-11-131-0/+21
|
* TST: remove a failing doctest for poly1d.rgommers2010-10-171-3/+0
| | | | | | | The failure only occurs on Windows and Python 2.5, there the printing of floating point numbers is slightly different. Since this is a doctest and can not be marked conditionally as knownfail, just removing it is simplest. It's not a bug anyway.
* BUG: lib: clean up ancient-Python era stuff from IndexExpression (#1196)Pauli Virtanen2010-10-111-1/+14
|