summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #278 from mwiebe/NA_buffer_errorcheckMark2012-05-182-0/+12
|\ | | | | BUG: maskna: PEP3118 code wasn't raising an error on NA-masked arrays
| * BUG: maskna: PEP3118 code wasn't raising an error on NA-masked arraysMark Wiebe2012-05-102-0/+12
| |
* | BUG: nditer: Memory leak from setting 'base' attribute two waysMark Wiebe2012-05-182-47/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Numpy uses its 'base' attribute in two different ways, both to manage the memory of an external data buffer, and to track an array for 'UPDATEIFCOPY' purposes. The nditer was creating a temporary view with negative strides to match the strides of input arrays, but then also wanted to use UPDATEIFCOPY. Unfortunately this choice to overload 'base' for both purposes prevents that from working, and the result was a memory leak. This bug has been fixed by choosing instead to retain positive strides and not fully match the order of input memory when doing the UPDATEIFCOPY.
* | BUG: fix typo in bscript.David Cournapeau2012-05-181-2/+2
| |
* | Merge pull request #276 from charris/fix-format-variable-mismatchStefan van der Walt2012-05-101-2/+1
|\ \ | |/ |/| BUG: Fix format/variable incompatibility.
| * BUG: Fix format/variable incompatibility.Charles Harris2012-05-101-2/+1
| | | | | | | | | | This shows up in python 2.4 where Py_ssize_t is an int. Also remove unused variable.
* | BUG: fix running tests with coverage=True.Ralf Gommers2012-05-101-1/+1
|/ | | | | | | The --cover-inclusive argument means that coverage.py tries to include every single .py file in the source tree in the coverage report. This leads to test errors, because it tries to import files like setupscons.py (which will of course directly fail for anyone not having numscons installed).
* BUG: Fix datetime 1.6 pickle compatibility test for Python 3.Charles Harris2012-05-101-3/+3
| | | | | In Python 3 the pickle.loads function expects a bytes argument, so convert the test strings.
* STY: Elaborate comment about cloning dtype's c_metadataMark Wiebe2012-05-101-20/+26
|
* DOC: Improve documentation comment from PR 274 commentMark Wiebe2012-05-101-4/+6
|
* ENH: Change NPY_AUXDATA_FREE macro based on PR feedbackMark Wiebe2012-05-101-4/+5
|
* BUG: Output the datetime64 dtype to the pickle format from 1.6Mark Wiebe2012-05-101-3/+12
|
* ENH: Change datetime64 to use c_metadata instead of metadataMark Wiebe2012-05-1014-478/+245
|
* ENH: Add a NpyAuxData c_metadata to PyArray_DescrMark Wiebe2012-05-103-95/+190
| | | | | | | | The purpose of this is to allow dtypes with metadata to have faster C-level performance. With this, datetime64 metadata lookup can become a single C pointer dereference, compared to a C-string to Python-string conversion + a Python dict lookup as it is presently.
* BUG: ufunc: The refactored reduction code didn't work with object arraysMark Wiebe2012-05-082-6/+36
|
* BUG: umath: greater_equal ufunc was using the wrong type resolver, failed ↵Mark Wiebe2012-05-072-1/+17
| | | | | | with datetime64 This bug was found by running the pandas master against numpy master.
* BUG: Fix some test bugs.Charles Harris2012-05-022-7/+7
| | | | | Fix incorrect python version checks in test_print.py. Fix missing build_err_msg import and wrong variable in test_io.py.
* STY: Whitespace cleanups.Charles Harris2012-04-213-4/+3
|
* WRN: Remove unused function prototype from ctors.h.Charles Harris2012-04-211-4/+0
|
* WRN: Fix unused variable compiler warnings in scalarmathmodule.c.src.Charles Harris2012-04-211-84/+227
| | | | | | | | Two templates were broken up and specialized. The corresponding substitution loops could also be specialized, but this wasn't done this time through. Breaking up the templates clarifies the code at the expense of extra text, but I think the improved clarity is a good tradeoff.
* WRN: Fixed some unused variable compiler warnings in arraytypes.c.src.Charles Harris2012-04-211-2/+29
| | | | | Also break templated @from@_to_@to@ functions into two templates to simplify the code a bit.
* STY: Remove unused functions.Charles Harris2012-04-212-46/+0
| | | | MyPyUnicode_Resize and MyPyUnicode_New are no longer used, so remove them.
* BUG: ticket #1578, fix PyArray_Scalar.Charles Harris2012-04-211-17/+28
| | | | | | | | PyArray_Scalar needed to use PyObject_* memory management since the numpy unicode object inherits tp_alloc from PyUnicode_Type. Observation: realloc returns null on error and that isn't always checked in Numpy.
* BUG: ticket #1578, fix UNICODE_getitem.Charles Harris2012-04-211-49/+4
| | | | | Use PyUnicode_FromUCS4 in UNICODE_getitime so that the same memory management is used for all parts of the returned PyUnicodeObject.
* ENH: Add PyUnicode_FromUCS4 to ucsnarrow.Charles Harris2012-04-212-0/+87
|
* ENH: Always include ucsnarray.h and ucsnarray.cCharles Harris2012-04-215-16/+4
| | | | | This removes the include dependency on PY_UNICODE_WIDE in preparation for defining more general unicode functions in the ucsnarray.c file.
* ENH: Fix bento script to always include ucsnarray.h and ucsnarrow.c.Charles Harris2012-04-211-28/+27
| | | | This fix is kept separate to facilitate cherry picking for a backport.
* Merge pull request #253 from charris/fix-filter-importwarningsRalf Gommers2012-04-151-15/+15
|\ | | | | | | | | Fix filter importwarnings This PR fixes the issue left over from merging PR-251.
| * FIX: Implement Ralph's suggestion of removing category.Charles Harris2012-04-151-6/+2
| |
| * BUG: Fix testing failure on missing ImportWarning in Python 2.4.Charles Harris2012-04-151-14/+18
| |
* | BLD: fix build error on Windows with MSVC9. Thanks to Christoph Gohlke.Ralf Gommers2012-04-151-1/+1
|/
* BUG: Find only platform-specific dlls in winsxs directory.Han Genuit2012-04-151-1/+5
|
* ENH: Use get_mktime as wrapper for mktime.Han Genuit2012-04-151-3/+1
|
* ENH: Add get_mktime function to support multiple platforms.hangenuit@gmail.com2012-04-151-0/+31
|
* BUG: Force MinGW to use 64-bits time type.Han Genuit2012-04-151-3/+7
|
* Merge pull request #251 from rgommers/no-importwarningsCharles Harris2012-04-151-0/+3
|\ | | | | TST: filter ImportWarnings in NoseTester.
| * TST: filter ImportWarnings in NoseTester.Ralf Gommers2012-04-141-0/+3
| | | | | | | | | | | | | | | | | | | | Warnings show up when a directory with the same name as a Python file or compiled extension is seen which doesn't have an __init__.py file in it. This situation is very common, for example in SciPy where many extensions are created from source files located under a directory with the same name. This filter is located within a context manager, so only filters when running tests.
* | Merge pull request #252 from rgommers/ticket-2103-cython-warningCharles Harris2012-04-152-34/+46
|\ \ | | | | | | Fix some test warnings
| * | TST: remove spurious warning for optional dependency pytz.Ralf Gommers2012-04-151-33/+35
| | |
| * | TST: filter Cython warning on import of random module. Closes #2103.Ralf Gommers2012-04-151-1/+11
| |/
* | Revert "BUG: ticket #1578, Fix python-debug warning for python >= 2.7."Charles Harris2012-04-142-18/+4
|/ | | | | | | | | | | This reverts commit 0a3a954c3750419552c076aa444563ac20def14a. The fix caused segfaults for python built using the default ucs2 unicode size. It looks like the cause is memory corruption in the PyObject pooled memory. In particular, the routines in ucsnarrow.c lack the checks and fallbacks present in the original Python source code in Objects/unicodeobject.c. I think the best fix is to rewrite the relevant bits of numpy code so that they don't use the MyPyUnicode_* routines at all, but rather the routines present in Python.
* FEAT: update to last bento+waf.David Cournapeau2012-04-131-1/+1
|
* BUG: Fix segfault when tests are run with python 2.7 debug.Charles Harris2012-04-112-1/+6
| | | | | | I don't know that the crash is python2.7 specific, it may also occur in earlier versions of python. The cause was mismatched memory allocation/deallocation of maskna data.
* TST: Add test for ticket #1578Charles Harris2012-04-111-0/+7
| | | | | | | The usefullness of this test is questionable, as it only shows up as a core dump when run under python-debug for python versions >= 2.7, and then it will only fail if run before other failing tests. It is included as it may be useful as a record.
* STY: Small style fixes.Charles Harris2012-04-111-14/+16
|
* BUG: ticket #1578, Fix python-debug warning for python >= 2.7.Charles Harris2012-04-112-4/+18
| | | | | | | | In Python >= 2.7 the memory management of unicode objects changed from PyMem_* to PyObject_*. Numpy had its own modified copy of some of the Python code for handling unicode objects and it needed to be updated to deal with the change. Thanks to Joseph Miessner for tracking this down and finding the fix.
* DOC: Fix outdated docstring.Tony S Yu2012-04-091-5/+5
| | | | Equal and nearly-equal size requirement is not true when passing a 1-D array of indices.
* BUG: fix regression for indexing chararrays with empty list. Closes #1948.Ralf Gommers2012-04-072-1/+8
|
* WRN: Fix some compiler warnings.Charles Harris2012-04-066-27/+38
|
* BUG: old_defines.h needs a guard.Charles Harris2012-04-061-0/+5
|