summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | MAINT: fix intp formatting warningsJulian Taylor2017-05-101-23/+24
| | | | |
| * | | | MAINT: Remove avoidable warningsEric Wieser2017-05-103-5/+3
| | | | |
| * | | | MAINT: use if instead of loopEric Wieser2017-05-101-31/+21
| | | | |
| * | | | BUG: Fix inconsistent lookup of __array_ufunc__.Eric Wieser2017-05-105-43/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, we would check if the attribute existed on the class, yet use it from the instance. This also cuts 3 lookups of `__array_ufunc__` down to one.
| * | | | MAINT: Fix warnings about int vs intpEric Wieser2017-05-101-9/+9
| | | | |
| * | | | MAINT: Distinguish "correct" special method lookups from incorrect onesEric Wieser2017-05-106-45/+99
| |/ / / | | | | | | | | | | | | This also corrects a broken short-circuit when looking up __array_ufunc__
* | | | Merge pull request #9050 from juliantaylor/fortranobj-pathCharles Harris2017-05-102-9/+50
|\ \ \ \ | | | | | | | | | | BUG: distutils, add compatiblity python parallelization
| * | | | BUG: distutils, add compatiblity python parallelizationJulian Taylor2017-05-041-3/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Python 3.5 also added build parallelization at the extension level instead of the file leve numpy uses. This causes two problems: - numpy.distutils is not threadsafe with duplicated source files When source files are duplicated in multiple extensions the output objects are overwritten which can truncate in a parallel context. This is fixed by keeping track of the files being worked on and wait for completion if another thread is already using the object name. - The parallelization on two nested levels causes oversubscription. When building multiple extensions with multiple source files the number of jobs running is multiplied. This is fixed by adding a semaphore that limits the number of jobs numpy starts to the defined amount. closes gh-7139
| * | | | BUG: distutils, place fortranobject files in subfolderJulian Taylor2017-05-041-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | Placing them all under the same name in the top level folder breaks when using the parallel extension compilation option of python 3.5.
* | | | | Merge pull request #9070 from ahaldane/silence_join_byEric Wieser2017-05-102-6/+49
|\ \ \ \ \ | |_|/ / / |/| | | | BUG: Preserve field order in join_by, avoids FutureWarning
| * | | | BUG: Preserve field order in join_by, avoids FutureWarningAllan Haldane2017-05-092-6/+49
| | | | | | | | | | | | | | | | | | | | Fixes #8940
* | | | | Merge pull request #9077 from eric-wieser/object-recursionJulian Taylor2017-05-092-1/+33
|\ \ \ \ \ | | | | | | | | | | | | BUG: Prevent stackoverflow on self-containing arrays
| * | | | | TST: Add missing tests for bool scalar conversionEric Wieser2017-05-091-0/+22
| | | | | |
| * | | | | BUG: Don't silence errors in bool(object_array)Eric Wieser2017-05-091-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Fixes #9078
| * | | | | BUG: Prevent stackoverflow on self-containing arraysEric Wieser2017-05-091-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Approaches #8306. This still errors, but it does so at a python level, without a segfault.
* | | | | | Merge pull request #9054 from eric-wieser/fix-pep3118ahaldane2017-05-092-127/+172
|\ \ \ \ \ \ | |/ / / / / |/| | | | | BUG: Various fixes to _dtype_from_pep3118
| * | | | | BUG: Prevent autogenerated names clashing with given namesEric Wieser2017-05-052-27/+27
| | | | | |
| * | | | | BUG: Fix non-determinism in order of fields created from pep3118 formatsEric Wieser2017-05-052-20/+33
| | | | | | | | | | | | | | | | | | | | | | | | Fixes gh-9053
| * | | | | ENH: Pad with itemsize, not padding fieldsEric Wieser2017-05-052-48/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding padding fields means that dtypes with the same fields cannot necessarily be cast to one another. Padding shouldn't prevent casting. Partially fixes #9053
| * | | | | MAINT: refactor _dtype_from_pep3118 in terms of a streamEric Wieser2017-05-051-43/+79
| | | | | |
* | | | | | Merge pull request #8846 from gfyoung/randint-extreme-rangeCharles Harris2017-05-093-15/+60
|\ \ \ \ \ \ | | | | | | | | | | | | | | BUG: Buttress handling of extreme values in randint
| * | | | | | BUG: Buttress handling of extreme values in randintgfyoung2017-05-093-15/+60
| | | | | | |
* | | | | | | Merge pull request #9026 from eric-wieser/ufunc_docstringsCharles Harris2017-05-095-201/+195
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | ENH: Show full PEP 457 argument lists for ufuncs
| * | | | | | | DOC: Correct parameter names for spacing and invertEric Wieser2017-05-081-2/+2
| | | | | | | |
| * | | | | | | DOC: Simplify the output of help(ufunc)Eric Wieser2017-05-081-37/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The distinction between unary and binary is not too helpful, and ignores the fact that trinary ufuncs can exist. Also add a link to the ufunc docs
| * | | | | | | DOC: Remove explanation of exception due to outEric Wieser2017-05-081-20/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was covered by very few ufuncs, and is probably better to leave out.
| * | | | | | | DOC: Refer to main ufunc docs for kwargsEric Wieser2017-05-081-83/+100
| | |_|_|_|_|/ | |/| | | | |
| * | | | | | DOC: Show full argument lists for ufuncsEric Wieser2017-05-083-59/+72
| | |_|/ / / | |/| | | |
* | | | | | ENH: Spelling fixesVille Skyttä2017-05-0935-46/+46
| |/ / / / |/| | | |
* | | | | BUG: if importing multiarray fails, don't discard the error messageNathaniel J. Smith2017-05-081-2/+4
|/ / / / | | | | | | | | | | | | | | | | This will hopefully make it easier to debug problems like those seen in gh-8653.
* | | | Merge pull request #9063 from shoyer/divmodEric Wieser2017-05-0813-189/+332
|\ \ \ \ | | | | | | | | | | ENH: add np.divmod ufunc
| * | | | DOC: fix docstring for np.isinStephan Hoyer2017-05-071-0/+1
| | | | |
| * | | | ENH: switch ndarray.__divmod__ to use np.divmodStephan Hoyer2017-05-076-168/+142
| | | | |
| * | | | ENH: add divmod support to NDArrayOperatorsMixinStephan Hoyer2017-05-072-40/+60
| | | | |
| * | | | ENH: add np.divmod ufuncStephan Hoyer2017-05-076-0/+148
| | | | |
* | | | | BUG: Move ctypes ImportError catching to appropriate place (#8898)davidjn2017-05-082-17/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a regression in 3c1a13dea6a7e189675977ad65ea230ce4816061, restoring the behaviour intended by eee00f8f7e15592a048c8b841aef9ea81faa0fda. This also extends the support on ctype-less systems for `arr.ctypes.shape` and `arr.ctypes.strides`. The dummy_ctype object is a naive fake used when ctypes is not importable. It does not intend to fake any ctypes behavior, but provides a duck-typed interface so that method calls do not fail. The get_shape and get_strides refactors take advantage of other instance methods and reduce code duplication.
* | | | | Merge pull request #9058 from charris/update-warning-messageCharles Harris2017-05-071-2/+2
|\ \ \ \ \ | | | | | | | | | | | | MAINT: Update FutureWarning message.
| * | | | | MAINT: Update FutureWarning message.Charles Harris2017-05-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The future structured array assignment change warned about in dtype_transfer.c will take place in NumPy 1.14, not 1.13.
* | | | | | DEP: deprecate ndarray.conjugate's no-op fall through for non-numericJonathan L Long2017-05-072-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | types This behavior is contrary to np.conjugate (which will error on non-numeric types), even though documentation claims they are identical. This deprecation favors failing fast.
* | | | | | Merge pull request #8421 from seberg/isnatCharles Harris2017-05-0711-46/+196
|\ \ \ \ \ \ | | | | | | | | | | | | | | ENH: Add isnat function and make comparison tests NAT specific
| * | | | | | BUG: Remove warning NaT filter from masked array test utilsSebastian Berg2017-05-072-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This may show warnings in downstream projects, which should likely not be there. We could also drop in the normal assert_equal there, which would support NaT, and NaN, but checks for scalarness, which this currently does not (which also could create problems). Works around the only test with this problem, by using the normal assert_equal there.
| * | | | | | BUG: Remove warning filters from comparison assert functionsSebastian Berg2017-05-072-38/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These warning filters are not threadsafe, while it is nicer if the comparison functions can be called in a threaded environment since they do no explicite warning checking. Less filters are also cleaner in general, though may also mean that downstream projects see warnings that were previously hidden.
| * | | | | | ENH: Add isnat functionSebastian Berg2017-05-077-1/+116
| | |/ / / / | |/| | | |
* | | | | | Merge pull request #8964 from juliantaylor/empty-readJulian Taylor2017-05-063-1/+22
|\ \ \ \ \ \ | | | | | | | | | | | | | | BUG: don't create array with invalid memory in where
| * | | | | | BUG: do not try to read data from empty src-stride 0 arraysJulian Taylor2017-04-201-0/+3
| | | | | | |
| * | | | | | BUG: don't create array with invalid memory in whereJulian Taylor2017-04-202-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When creating the tuple view of np.where, make sure the arrays point to valid memory when they are empty. Numpy assumes that even empty arrays have valid memory, e.g. in the source stride == 0 assignments. Closes gh-8922.
* | | | | | | Merge pull request #8939 from eric-wieser/deprecate-miniCharles Harris2017-05-064-74/+119
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | DEP: Deprecate `np.ma.MaskedArray.mini
| * | | | | | | MAINT: add __doc__ to minimumEric Wieser2017-05-061-32/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, remove unecessary subclasses
| * | | | | | | STY: Tabs to spacesEric Wieser2017-05-061-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduced by me in #8918
| * | | | | | | DEP: inconsistent axis default for np.ma.maximumEric Wieser2017-05-063-14/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This does not match np.maximum, which is confusing because the masked version has no documentation at all. This uses a similar deprecation approach to gh-8918, noting that the warning is only needed for arrays of more than one dimension. The same remarks apply to `np.ma.minimum`