| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
| |
before using the new code path. Add tests.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The original masked-NA-NEP branch contained a large number of changes
in addition to the core NA support. For example:
- ufunc.__call__ support for where= argument
- nditer support for arbitrary masks (in support of where=)
- ufunc.reduce support for simultaneous reduction over multiple axes
- a new "array assignment API"
- ndarray.diagonal() returning a view in all cases
- bug-fixes in __array_priority__ handling
- datetime test changes
etc. There's no consensus yet on what should be done with the
maskna-related part of this branch, but the rest is generally useful
and uncontroversial, so the goal of this branch is to identify exactly
which code changes are involved in maskna support.
The basic strategy used to create this patch was:
- Remove the new masking-related fields from ndarray, so no arrays
are masked
- Go through and remove all the code that this makes
dead/inaccessible/irrelevant, in a largely mechanical fashion. So
for example, if I saw 'if (PyArray_HASMASK(a)) { ... }' then that
whole block was obviously just dead code if no arrays have masks,
and I removed it. Likewise for function arguments like skipna that
are useless if there aren't any NAs to skip.
This changed the signature of a number of functions that were newly
exposed in the numpy public API. I've removed all such functions from
the public API, since releasing them with the NA-less signature in 1.7
would create pointless compatibility hassles later if and when we add
back the NA-related functionality. Most such functions are removed by
this commit; the exception is PyArray_ReduceWrapper, which requires
more extensive surgery, and will be handled in followup commits.
I also removed the new ndarray.setasflat method. Reason: a comment
noted that the only reason this was added was to allow easier testing
of one branch of PyArray_CopyAsFlat. That branch is now the main
branch, so that isn't an issue. Nonetheless this function is arguably
useful, so perhaps it should have remained, but I judged that since
numpy's API is already hairier than we would like, it's not a good
idea to add extra hair "just in case". (Also AFAICT the test for this
method in test_maskna was actually incorrect, as noted here:
https://github.com/njsmith/numpyNEP/blob/master/numpyNEP.py
so I'm not confident that it ever worked in master, though I haven't
had a chance to follow-up on this.)
I also removed numpy.count_reduce_items, since without skipna it
became trivial.
I believe that these are the only exceptions to the "remove dead code"
strategy.
|
|\
| |
| | |
sphinxext cleanup
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
- remove obsolete entry_points (the corresponding code was removed in
08e85c1820f8502e2a5009da4d3d89c6462a911b).
- drop setuptools import
- adjust setup() argument to conform with distutils format
|
|\ \
| |/ |
|
| | |
|
| | |
|
|\ \
| |/ |
|
| |\
| | |
| | | |
The docs should stress that functions that create arrays actually steals a reference to dtype descriptor
|
| | | |
|
| | |
| | |
| | |
| | | |
Thanks to Travis for catching it.
|
| | | |
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| | |
This is mostly a code cleanup, but it does have a user-visible effect
in that attempting to write to a unwriteable array now consistently
raises ValueError. (It used to randomly raise either ValueError or
RuntimeError.)
Passes numpy.test("full").
|
| | |
|
| | |
|
|/
|
|
|
|
|
|
| |
Version 1.0.4 was used till now, but has become too old. New version gives far
fewer warnings and thereby increases the reference guide with O(100) pages that
previously got lost.
Also update current Cython version number.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The various padding functions are exposed as options to a public 'pad'
function. Example:
pad(a, 5, mode='mean')
Current modes are 'constant', 'edge', 'linear_ramp', 'maximum', 'mean',
'median', 'minimum', 'reflect', 'symmetric', 'wrap', and <function>
This commit includes unit tests and doctests and is based on feature
request ticket #655.
|
|
|
|
|
|
|
|
| |
The new argument allows one to search an argsorted array by passing
in the result of argsorting the array as the 'sorter' argument. For
example
searchsorted(a, sorter=a.argsort)
|
| |
|
|
|
|
| |
This has been extensively discussed on the mailing list. See #2072.
|
| |
|
| |
|
|\
| |
| |
| |
| |
| | |
Add parameters in NoseTester constructor as well as in NoseTester.test() to control which warnings raise an error. An explicit difference is made between the master branch and release branches.
This was mentioned on the ML: http://thread.gmane.org/gmane.comp.python.numeric.general/48210
|
| | |
|
| |
| |
| |
| |
| | |
Also document that behavior has to be switched for a release, and remove
comments on turning on deprecation warnings that don't apply anymore.
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
The old_defines.h file is no longer included in ndarrayobject.h, but
instead in the npy_deprecated_api.h file. It is no longer part of the numpy
build and its deprecation is noted in the release notes.
|
| |
|
|
|
|
|
| |
Also remove swig support for numpy < 1 from numpy.i since it expects
the old macros.
|
| |
|
| |
|
|
|
|
|
| |
Add more explanation of what happens in polynomial substitution and also of
its use in casting between types. Clean up some rst glitches.
|
| |
|
| |
|
| |
|
| |
|