summaryrefslogtreecommitdiff
path: root/numpy/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #12388 from mhvk/linspace-allow-arrayCharles Harris2018-12-061-4/+4
|\ | | | | ENH: allow arrays for start and stop in {lin,log,geom}space
| * TST,BUG: fix two tests that were setup incorrectly.Marten van Kerkwijk2018-12-041-4/+4
| | | | | | | | And which failed with the change to linspace.
* | MAINT: Review F401,F841,F842 flake8 errors (unused variables and imports) ↵Roman Yurchak2018-12-067-13/+6
| | | | | | | | | | | | | | | | | | | | | | | | (#12448) * Review F401,F841,F842 flake8 errors (unused variables, imports) * Review comments * More tests in test_installed_npymath_ini * Review comments
* | ENH: implement matmul on NDArrayOperatorsMixin (#12488)Stephan Hoyer2018-12-052-3/+13
|/ | | | | | * ENH: implement matmul on NDArrayOperatorsMixin * MAINT: remove unnecessary pytest import
* Merge pull request #12447 from ahaldane/unrevert_multifield_viewCharles Harris2018-12-011-0/+10
|\ | | | | ENH: add back the multifield copy->view change
| * ENH: add back the multifield copy->view changeAllan Haldane2018-11-261-0/+10
| | | | | | | | | | Fixes #10409 Closes #11530
* | Merge pull request #12443 from rth/set-litteralEric Wieser2018-12-014-6/+6
|\ \ | | | | | | MAINT Use set litterals
| * | Use set litteralsRoman Yurchak2018-11-244-6/+6
| |/
* | MAINT: Use list and dict comprehension when possible (#12445)Roman Yurchak2018-12-011-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use list comprehension * More list comprehension migration * Revert key copying in dict * A few more fixes * More reverts * Use dict comprehension * Fix dict comprehension * Address review comments * More review comments * Fix for empty unpacking of zip(* * Revert zip(* unpacking altogether * Fix dict copying * More simplifications
* | Merge pull request #12446 from ahaldane/recfunctions_fixupsCharles Harris2018-11-292-13/+41
|\ \ | | | | | | MAINT: Fixups to new functions in np.lib.recfunctions
| * | MAINT: Fixups to new functions in np.lib.recfunctionsAllan Haldane2018-11-262-13/+41
| |/
* | Merge pull request #11197 from wummo/correct_covariance_scalingMarten van Kerkwijk2018-11-272-21/+59
|\ \ | |/ |/| BUG/ENH: Removed non-standard scaling of the covariance matrix and added option to disable scaling completely.
| * Removed non-standard scaling of the covariance matrix and added option to ↵Andreas Nussbaumer2018-11-212-21/+59
| | | | | | | | disable scaling completely.
* | Merge pull request #11526 from ahaldane/add_struct_helper_funcs_redoCharles Harris2018-11-232-2/+385
|\ \ | | | | | | ENH: add multi-field assignment helpers in np.lib.recfunctions
| * | MAINT: Add new recfunctions to numpy function APIAllan Haldane2018-11-231-0/+23
| | |
| * | ENH: Fixups to multi-field assignment helpersAllan Haldane2018-11-222-42/+72
| | |
| * | ENH: add multi-field assignment helpers in np.lib.recfunctionsAllan Haldane2018-10-312-2/+332
| | | | | | | | | | | | | | | | | | Adds helper functions for the copy->view transition for multi-field indexes. Adds `structured_to_unstructured`, `apply_along_fields`, `assign_fields_by_name`, `require_fields`.
* | | resolve issues from reviewguoci2018-11-202-4/+7
| | |
* | | DOC: mention LOOCV in description of "stone" rule.Stephan Hoyer2018-11-201-2/+2
| | |
* | | ENH: Add 'ise' estimator to np.histogramguoci2018-11-202-23/+94
| |/ |/|
* | MNT: Reword error message about loading pickled data.Elliott Sales de Andrade2018-11-191-2/+2
| | | | | | | | This double negative is confusing to me.
* | MAINT: Rewrite shape normalization in pad function (#11966)Lars Grüter2018-11-152-94/+145
| |
* | Merge pull request #12399 from hershen/fix-polyint-typoCharles Harris2018-11-151-1/+1
|\ \ | | | | | | DOC: Fix typo in polyint. Fixes #12386.
| * | DOC: Fix typo in polyint.Alon Hershenhorn2018-11-151-1/+1
| | | | | | | | | | | | | | | Change differentiate to integrate in parameter `p` description. Fixes #12386.
* | | Merge pull request #12391 from mattip/deprecate-uniqueCharles Harris2018-11-151-19/+0
|\ \ \ | |/ / |/| | DEP: raise on a call to deprecated numpy.lib.function_base.unique
| * | DEP: remove deprecated numpy.lib.function_base.uniquemattip2018-11-151-19/+0
| | |
* | | Merge pull request #12381 from tylerjereddy/datasource_del_handlingCharles Harris2018-11-152-1/+16
|\ \ \ | | | | | | | | BUG: graceful DataSource __del__ when __init__ fails
| * | | BUG: improve DataSource __del__Tyler Reddy2018-11-132-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * DataSource __del__ could raise an AttributeError if __init__ failed for any reason; __del__ now gracefully handles the case where __init__ fails, as happens in the internals of refguide_check when handling DataSource with an unexpected kwarg
* | | | DEV remove shim added in 1.4mattip2018-11-141-7/+0
| |/ / |/| |
* | | Merge pull request #12382 from shoyer/finish-set-moduleCharles Harris2018-11-1410-5/+69
|\ \ \ | | | | | | | | ENH: set correct __module__ for objects in numpy's public API
| * | | ENH: set correct __module__ for objects in numpy's public APIStephan Hoyer2018-11-1310-5/+69
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes GH-12271 Tests verify that everything in ``dir(numpy)`` either has ``__module__`` set to ``'numpy'``, or appears in an explicit whitelist of undocumented functions and exported bulitins. These should eventually be documented or removed. I also identified a handful of functions for which I had accidentally not setup dispatch for with ``__array_function__`` before, because they were listed under "ndarray methods" in ``_add_newdocs.py``. I guess that should be a lesson in trusting code comments :).
* | | MAINT: fix from reviewmattip2018-11-141-6/+2
| | |
* | | BUG: fix for titles, cleanup, fixes from reviewmattip2018-11-132-8/+25
| | |
* | | BUG: test, fix loading structured dtypes with paddingmattip2018-11-132-2/+49
|/ /
* | Merge pull request #12241 from tylerjereddy/histogramdd_test_arg_branchCharles Harris2018-11-121-0/+17
|\ \ | | | | | | TST: arg handling tests in histogramdd
| * | TST: arg handling tests in histogramddTyler Reddy2018-10-221-0/+17
| | |
* | | MAINT: more fixes for disabling overridesStephan Hoyer2018-11-101-1/+4
| | |
* | | MAINT: disable __array_function__ dispatch unless environment variable setStephan Hoyer2018-11-101-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Per discussion on the mailing list, __array_function__ isn't quite ready to release as part of NumPy 1.16: https://mail.python.org/pipermail/numpy-discussion/2018-November/078949.html We'd like to improve performance a bit, and it will be easier to support introspection on NumPy functions if we support Python 3 only. So for now, you need to set the environment variable ``NUMPY_EXPERIMENTAL_ARRAY_FUNCTION=1`` to enable dispatching.
* | | ENH: Improve support for pathlib.Path objects in load functions (#11348)Paul Müller2018-11-012-8/+34
| | | | | | | | | * ENH: Improve support for pathlib.Path objects in more functions
* | | Merge pull request #12157 from eric-wieser/fspathMatti Picus2018-10-311-28/+19
|\ \ \ | |_|/ |/| | ENH: Add support for third-party path-like objects by backporting os.fspath
| * | ENH: Add support for third-party path-like objects by backporting os.fspathEric Wieser2018-10-121-28/+19
| | |
* | | DEP: deprecate passing a generator to stack functionsStephan Hoyer2018-10-272-2/+12
| | | | | | | | | | | | | | | | | | Fixes gh-12263 We can't support generators with dispatch for ``__array_function__``.
* | | BUG: Revert linspace import for concatenation funcs (#12265)James Bourbeau2018-10-262-3/+7
| | | | | | | | | BUG: test and fix import linspace in index_tricks
* | | Merge pull request #12251 from shoyer/array-function-error-msgAllan Haldane2018-10-2512-15/+65
|\ \ \ | | | | | | | | MAINT: improved error message when no __array_function__ implementation found
| * | | MAINT: set preferred __module__ for numpy functionsStephan Hoyer2018-10-2312-15/+65
| | | |
* | | | Merge pull request #12245 from tylerjereddy/test_sort_complexMatti Picus2018-10-231-0/+26
|\ \ \ \ | |/ / / |/| | | TST: tests for sort_complex()
| * | | TST: tests for sort_complex()Tyler Reddy2018-10-221-0/+26
| | |/ | |/|
* | | ENH: __array_function__ support for np.lib, part 2/2 (#12119)Stephan Hoyer2018-10-229-8/+399
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ENH: __array_function__ support for np.lib, part 2 xref GH12028 np.lib.npyio through np.lib.ufunclike * Fix failures in numpy/core/tests/test_overrides.py * CLN: handle depreaction in dispatchers for np.lib.ufunclike * CLN: fewer dispatchers in lib.twodim_base * CLN: fewer dispatchers in lib.shape_base * CLN: more dispatcher consolidation * BUG: fix test failure * Use all method instead of function in assert_equal * DOC: indicate n is array_like in scimath.logn * MAINT: updates per review * MAINT: more conservative changes in assert_array_equal * MAINT: add back in comment * MAINT: casting tweaks in assert_array_equal * MAINT: fixes and tests for assert_array_equal on subclasses
* | TST: unit tests for column_stack.Tyler Reddy2018-10-191-0/+20
| |
* | Merge pull request #12216 from tylerjereddy/hist_range_test_sanityEric Wieser2018-10-181-0/+6
|\ \ | | | | | | TST: test invalid histogram range