summaryrefslogtreecommitdiff
path: root/numpy/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| | | | * | | ENH: Changed the sequence of checking for locale existence of a file and ↵EelcoPeacs2019-01-161-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | importing urllib modules in numpy._datasource.py to prevent the import in case the local file was found See #12536
| | | * | | | DOC: Update docstring of diff() to use 'i' not 'n'Andy Scholand2019-01-151-1/+1
| | | |/ / / | | | | | | | | | | | | See issue https://github.com/numpy/numpy/issues/12742
| | | * | | BUG: loosen kwargs requirements in ediff1dmattip2019-01-102-18/+16
| | | | | |
| | | * | | BUG: reference cycle in np.vectorize (#11977)Matti Picus2019-01-091-2/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This implements cyclic support by adding `tp_traverse` to ufuns which may contain a user provided object function (`np.frompyfunc`). Ufuncs that do not add this are not added to the circular reference count tracking. The ufunc does not need to implement `tp_clear` because it is an immutable object.
| | | * | | ENH: remove "Invalid value" warnings from median, percentilemattip2019-01-063-76/+26
| | | | | |
| | | * | | TST: Fix endianness in unstuctured_to_structured testAllan Haldane2019-01-051-3/+3
| | | | | |
| | | * | | Merge pull request #12239 from daten-kieker/polyval_2477Marten van Kerkwijk2019-01-041-1/+3
| | | |\ \ \ | | | | | | | | | | | | | | BUG: polyval returned non-masked arrays for masked input.
| | | | * | | BUG: polyval returned Non-Masked Arrays for Masked Input.Joachim Hereth2018-10-211-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fix will preserve subtypes of ndarray when given as input (x) to the polyval function. In particular, the results for masked values of a masked array will be masked. Fixes #2477.
| | | * | | | DOC, TST: clean up matplotlib importsTyler Reddy2019-01-022-11/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * as requested by review in gh-12634, the vast majority of docstring matplotlib imports can be simplified to a single line
| | | * | | | DOC, TST: remove agg setting from docsTyler Reddy2019-01-022-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * there is no longer any usage of "agg" backend switching in our docstrings because this backend is already activated in the refguide_check machinery
| | | * | | | Refactored numpy.delete function docsAbdur Rehman2018-12-211-1/+1
| | | | | | |
| | | * | | | Clarify skiprows in loadtxtIlja2018-12-181-1/+1
| | | | | | |
| | | * | | | MAINT: include recfunctions moduleTyler Reddy2018-12-142-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * added lib.recfunctions to refguide PUBLIC_SUBMODULES, as the doctests were otherwise not getting executed * fixed a failing doctest in recfunctions after above activation
| | | * | | | MAINT: addressing review commentsTyler Reddy2018-12-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * restored regression comment in numpy/core/defchararray.py * fixed the dimensionality of the z array in all() docstring in numpy/core/fromnumeric.py; this isn't detected because it is in-line with variable memory addresses which are tagged as variable for refguide * byte_bounds() docstring adjusted to reflect non-variable dtype after reviewer requested removal of complex dtype * restore an original comment in matmul docstring, as requested by reviewer
| | | * | | | MAINT: revert numpy/lib/mixins to master branch status -- refguide passes in ↵Tyler Reddy2018-12-141-49/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | any case now.
| | | * | | | MAINT: address several reviewer commentsTyler Reddy2018-12-147-14/+22
| | | | | | |
| | | * | | | TST, DOC: enable refguide_checkTyler Reddy2018-12-1421-572/+600
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ported the refguide_check module from SciPy for usage in NumPy docstring execution/ verification; added the refguide_check run to Azure Mac OS CI * adjusted NumPy docstrings such that refguide_check passes
| | * | | | | BUG: Return the coefficients array directlyEric Wieser2017-07-082-11/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Turns out that this was relied upon downstream We also add a setter for coeffs, so that augmented assignment does not both change state and raise an exception suggesting state could not be changed.
| * | | | | | BUG: Fix structured_to_unstructured on single-field typesEric Wieser2019-04-152-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously a single-field type would decay, which is undesirable. The included test previously did not pass
* | | | | | | MAINT: Fix remaining misuses of bool(dt.names)Eric Wieser2019-08-191-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | It's not clear that these have any visible effect, but we should be consistent with how we detect structured types.
* | | | | | | BUG: Don't construct masked arrays with the wrong mask type in genfromtxtEric Wieser2019-08-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This only affects arrays with `dtype([])`, but also follows the recommended way to check for structured arrays in our docs
* | | | | | | BUG: Don't allow extra fields to be added in genfromtxtEric Wieser2019-08-192-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously passing `dtype=[], names=['a']` would append an extra field, even though `dtype=['a'], names=['b', 'c']` does not.
* | | | | | | MAINT: Remove incorrect comment about flatteningEric Wieser2019-08-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also adjust the code to more clearly indicate what actually happens. The behavior is identical before and after this patch.
* | | | | | | BUG: recfunctions: Don't return None in place of empty sequencesEric Wieser2019-08-192-6/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replacing empty tuples with `None` is a bad idea, and just results in an API that is hard to consume - especially since the behavior was never documented. This affects `get_names`, `get_names_flat`, and `get_fieldstructure`.
* | | | | | | BUG: Fix crash on genfromtxt with nested empty structured arrayEric Wieser2019-08-192-1/+8
| |_|/ / / / |/| | | | | | | | | | | | | | | | | Previously this would fail with `ValueError: could not assign tuple of length 2 to structure with 3 fields.`, now it raises `NotImplementedError`.
* | | | | | 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