summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | MAINT: Fix test_utils.py for Python 3.7.Charles Harris2018-03-191-14/+29
| | | | | | | | | | | | | | | | | | | | | | | | The contents of the module warnings registries was made more module specific in Python 3.7 and consequently the tests of the context managers clear_and_catch_warnings and suppress_warnings need updating.
| * | | MAINT: Fix char* variable in arr_add_docstring for Python 3.7Charles Harris2018-03-151-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | In Python 3.7 the return type of PyUnicode_AsUTF8 has changed from `char *` to `const char *` and the variable the return is stored in needs to match.
* | | | Merge pull request #10755 from eric-wieser/reduce-histogram-docsCharles Harris2018-03-161-108/+76
|\ \ \ \ | | | | | | | | | | DOC: Move bin estimator documentation from `histogram` to `histogram_bin_edges`
| * | | | MAINT: The histogram_bin_edges function needs a raw docstring.Charles Harris2018-03-161-1/+1
| | | | |
| * | | | DOC: Move bin estimator documentation from `histogram` to `histogram_bin_edges`Eric Wieser2018-03-161-107/+75
| | | | |
* | | | | Merge pull request #10666 from dfreese/fix/covcomplexCharles Harris2018-03-162-2/+4
|\ \ \ \ \ | | | | | | | | | | | | BUG: fix complex casting error in cov with aweights
| * | | | | BUG: fix complex casting error in cov with aweightsDavid Freese2018-02-252-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using cov with a complex input and with aweights specified, cov will error as a result of trying to cast a complex value into a float64. This comes about since average is used to calculate the sum of the weights from aweights. average returns the sum of weights as the same type as its result, not the weights type. For a complex input m, and any type for aweights, this would result in a complex value for fact. It appears the primary purpose of np.float64(fact) is to provide a NaN value from the divide when fact is an integer zero. This has been replaced by using numpy.divide to replicate the same behavior, but to also handle complex types.
* | | | | | TST, DOC: Upload devdocs and neps after circleci build (#10702)Stefan van der Walt2018-03-161-11/+10
| |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Upload devdocs and neps after build * Install numpydoc * Fix masked array documentation injection `doc_note` appends a `Notes` section to docstrings, which may lead to duplicate sections. * Add deploy key for neps repo Note that we have to explicitly reset the ~/.ssh/config to only leave one SSH key * Only deploy on master branch * Blow away previous dev docs after each upload * Add tool to upload files to remote repo * Remove numpydoc from pip install; it is included as a submodule * Avoid using invalid escape code * Rename repo upload tool * Use check_call to simplify doc pushing tool
* | | | | ENH: Add np.histogram_bin_edges (#10591)Kirit Thadaka2018-03-152-3/+141
| | | | | | | | | | | | | | | | | | | | | | | | | Fixes #10183 Documentation is copied from np.histogram
* | | | | Merge pull request #10618 from eric-wieser/avoid-nontuple-indicesMarten van Kerkwijk2018-03-158-29/+33
|\ \ \ \ \ | | | | | | | | | | | | MAINT: Stop using non-tuple indices internally
| * | | | | MAINT: Stop using non-tuple indices internallyEric Wieser2018-02-168-29/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By not using this type of indexing, it becomes easier for subclasses to override indexing in a way that works correctly with numpy functions. These locations were found by deprecating the behavior in question, which is deliberately not part of this commit
* | | | | | Merge pull request #10750 from eric-wieser/percentile-graphCharles Harris2018-03-151-0/+27
|\ \ \ \ \ \ | | | | | | | | | | | | | | DOC: Add graph showing different behaviors of np.percentile
| * | | | | | DOC: Add graph showing different behaviors of np.percentileEric Wieser2018-03-151-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | With thanks to @ricardoV94 for inspiring this
* | | | | | | Merge pull request #10746 from hvy/fix-typoCharles Harris2018-03-151-1/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | DOC: Fix typo in warning message
| * | | | | | | DOC: Fix typo in warning messagehvy2018-03-151-1/+1
| | |_|_|/ / / | |/| | | | |
* | | | | | | fixed order of notes and examplesJonas Rauber2018-03-151-8/+8
| | | | | | |
* | | | | | | Update add_newdocs.pyJonas Rauber2018-03-151-3/+9
| | | | | | |
* | | | | | | fixes #10747Jonas Rauber2018-03-151-2/+4
|/ / / / / /
* | | | | | TST: Import abstract classes from collections.abcFrederick Lefebvre2018-03-147-19/+54
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Abstract collection classes accessed from the collections module have been deprecated since Python 3.3. They should be accessed through collections.abc. When run with Python 3.7, the deprecation warning cause multiple tests to fail.
* | | | | Merge pull request #10718 from AaronCritchley/tst-fixing-float16-eqCharles Harris2018-03-133-2/+36
|\ \ \ \ \ | | | | | | | | | | | | BUG: Fix bug in asserting near equality of float16 arrays.
| * | | | | MAINT: Increase range in float16 almost equal nulp test.Charles Harris2018-03-131-2/+4
| | | | | |
| * | | | | TST: Fixing bug in assert near equality of float16 arrays (#10697)Aaron Critchley2018-03-103-2/+34
| | | | | |
* | | | | | Fix low-hanging Pypy compatibility issues (#10737)Pauli Virtanen2018-03-1210-31/+24
| |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * TST: skip refcount-requiring tests if sys.refcount is missing * ENH: io: add refcheck=False to a safe .resize() call The array is allocated immediately above, and the resize always succeeds so it is not necessary to check it. Fixes Pypy compatibility. * TST: remove unused code * TST: factor skipif(not HAS_REFCOUNT) into a separate decorator
* | | | | MAINT: Misc small fixes. (#10722)Charles Harris2018-03-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * MAINT: Replace print statements for Python3. Updates tools/swig/test/testSuperTensor.py. * MAINT: Fix deprecated escaped characters for python 3.6+. Update numpy/linalg/lapack_lite/clapack_scrub.py.
* | | | | Merge pull request #10716 from ahaldane/fix_dragon4_fractional_cutoffCharles Harris2018-03-102-5/+13
|\ \ \ \ \ | | | | | | | | | | | | BUG: dragon4 fractional output mode adds too many trailing zeros
| * | | | | BUG: dragon4 fractional output mode adds too many trailing zerosAllan Haldane2018-03-092-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | Fixes #10713
* | | | | | Merge pull request #10720 from WarrenWeckesser/fix-gh-10712Charles Harris2018-03-102-3/+57
|\ \ \ \ \ \ | | | | | | | | | | | | | | BUG: distutils: Remove named templates from the processed output (fix gh-10712)
| * | | | | | MAINT: Remove obsolete comment.Warren Weckesser2018-03-101-1/+1
| | | | | | |
| * | | | | | BUG: distutils: Remove named templates from the output.Warren Weckesser2018-03-102-2/+56
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code now does not copy the named templates found outside a function or subroutine to the output file. Fixes gh-10712.
* | | | | | Merge pull request #10719 from guoci/numpy_constants_docCharles Harris2018-03-101-2/+25
|\ \ \ \ \ \ | | | | | | | | | | | | | | DOC: add documentation for constants
| * | | | | | declare source code encodingguoci2018-03-101-0/+1
| | | | | | |
| * | | | | | add documentation for constantsguoci2018-03-101-2/+24
| |/ / / / /
* | | | | | MAINT: Fixed C++ guard in f2py test.siavashserver2018-03-091-2/+2
|/ / / / /
* | | | | Merge pull request #10689 from freakboy3742/iOS-compatCharles Harris2018-03-084-10/+21
|\ \ \ \ \ | | | | | | | | | | | | BLD: Add configuration changes to allow cross platform builds for iOS.
| * | | | | BLD: Add configuration to allow cross platform builds for iOS.Russell Keith-Magee2018-03-044-10/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When building NumPy for iOS, you build on macOS, with compiler flags to target iOS or the iOS simulator. However, setup.py runs on macOS, so sys.platform == 'darwin', regardless of the platform being targetted. distutils provides an environment variable - _PYTHON_HOST_PLATFORM - to indicate when you are building for a different platform. This patches uses that variable to identify cross-platform builds and disable macOS specific features. The patch also renames an internal method in strfuncs to avoid a collision with a symbol in iOS's standard library, and includes math.h to avoid errors about undefined symbols.
* | | | | | Merge pull request #10711 from charris/fix-hard-tabsCharles Harris2018-03-0811-120/+121
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | MAINT: Hard tab and whitespace cleanup.
| * | | | | MAINT: Hard tab and whitespace cleanup.Charles Harris2018-03-0811-120/+121
| | | | | |
* | | | | | Merge pull request #10698 from ahaldane/fix_0d_object_subclass_againCharles Harris2018-03-082-13/+47
|\ \ \ \ \ \ | |/ / / / / |/| | | | | BUG: Further back-compat fix for subclassed array repr (forward port)
| * | | | | BUG: Further back-compat fix for subclassed array reprAllan Haldane2018-03-052-13/+47
| | | | | | | | | | | | | | | | | | | | | | | | Fixes #10663
* | | | | | Merge pull request #10708 from bobeldering/f2py-multilineCharles Harris2018-03-082-2/+56
|\ \ \ \ \ \ | | | | | | | | | | | | | | BUG: fix problem with modifing pyf lines containing ';' in f2py
| * | | | | | TST: test handling ';' in multiline and enhancement lines, numpy.f2pyBob Eldering2018-03-081-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Regression tests for bug discussed in pull request #10676. Lines matching the multiline or f2py enhancement pattern should not be split by ';'.
| * | | | | | BUG: fix for splitting a multiline or enhancement by ';' in numpy.f2py.Bob Eldering2018-03-081-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The variable line was assigned to before checking whether it contains a multiline or f2py enhancement pattern. In these cases the line should not be split by ';'. See pull request #10676.
* | | | | | | Merge pull request #10694 from lumbric/patch-2Charles Harris2018-03-081-1/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | DOC: Improve docstring of memmap
| * | | | | | | DOC: Improve docstring of memmaplumbric2018-03-051-1/+1
| | |/ / / / / | |/| | | | | | | | | | | | See also 8a38f64.
* | | | | | | Merge pull request #10710 from louispotok/select-error-messageCharles Harris2018-03-081-1/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | BUG: fix error message in numpy.select
| * | | | | | | BUG: fix error message in numpy.selectLouis Potok2018-03-081-1/+1
| | |/ / / / / | |/| | | | |
* | | | | | | ENH: Allow dtype field names to be unicode in Python2 (#10672)Chris Billington2018-03-082-6/+22
|/ / / / / / | | | | | | | | | | | | ENH: Allow dtype field names to be ascii encoded unicode in Python2
* | | | | | DOC: Grammar of np.gradient docstringAllan Haldane2018-03-061-3/+3
|/ / / / / | | | | | | | | | | | | | | | [ci-skip]
* | | | | DOC: add versionadded for NDArrayOperatorsMixin.Stephan Hoyer2018-03-041-0/+2
| | | | |
* | | | | MAINT: Covariance must be symmetric as well as positive-semidefinite. (#10669)Oleg Zabluda2018-03-041-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [BUG] add "symmetric" to "positive-semidefinite" * Break line, fix comments * break long line