summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | BUG: Fix test_f2py so it runs correctly in runtests.py.Charles Harris2015-12-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The loop checking for command line versions can terminate early as the errors are not always of OSError type. In particular, runtests.py may only store the command with the python version and the check for that is not executed, leading to a test failure.
* | | | | | Merge pull request #6915 from rgommers/doc-nose-dependencyCharles Harris2015-12-311-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | DOC: update min nose version in import error message
| * | | | | | DOC: update min nose version in import error message, and add note to READMERalf Gommers2015-12-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Addresses comment in gh-4074.
* | | | | | | MAINT: Cleanup and spelling fixups in ma.core testsgfyoung2015-12-301-24/+2
|/ / / / / /
* | | | | | Merge pull request #6901 from njsmith/test-warning-defaultsRalf Gommers2015-12-3013-48/+60
|\ \ \ \ \ \ | | | | | | | | | | | | | | [FIX] fix NoseTester's raise_warning default
| * | | | | | [TST] Refactor new raise_warnings logic for subpackage test suitesNathaniel J. Smith2015-12-3013-39/+50
| | | | | | |
| * | | | | | [FIX] fix NoseTester's raise_warning defaultNathaniel J. Smith2015-12-292-16/+17
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Our test-runner's raise_warning mode traditionally has varied depending on whether we have a development or release version of numpy: for development versions we raise on warnings, and for release versions we don't. This is all very sensible... *if* you're running numpy's test suite. But our test-runner is also used by other packages like scipy, and it doesn't make sense for scipy's raise_warning mode to vary depending on whether *numpy* is a development or release version. (It should vary depending on whether the scipy-under-test is a development or release version.) So this commit moves the numpy-version-dependent raise_warning logic out of the generic NoseTester class and into numpy-specific code. (See scipy/scipy#5609 for more discussion.)
* | | | | | MAINT: Cleaned up unused variables and spelling mistakes in np.random modulesgfyoung2015-12-292-6/+1
|/ / / / /
* | | | | ENH: Allow random_integers to include the maximum np.iinfo('l').maxgfyoung2015-12-282-31/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Redistributes the code between the randint and random_integers methods so that we can generate integers up to and including np.iinfo('l').max with random_integers, which previously would have caused an OverflowError.
* | | | | DOC: Comment all O1s [ci skip]Eric Larson2015-12-281-2/+2
| | | | |
* | | | | FIX: Fix MKL for LinuxEric Larson2015-12-281-2/+2
|/ / / /
* | | | Merge pull request #6880 from charris/fix-windows-tempfileNathaniel J. Smith2015-12-241-47/+28
|\ \ \ \ | | | | | | | | | | BUG: Fix tempfile failures on window.
| * | | | BUG: Fix tempfile failures on window.Charles Harris2015-12-231-47/+28
| | | | | | | | | | | | | | | | | | | | | | | | | Temporary files on windows cannot be held open by two files at once.
* | | | | typo corrrected.Daniel2015-12-231-1/+1
| | | | |
* | | | | DOC: Fix poly_val description for 'x' inputgfyoung2015-12-221-4/+4
|/ / / / | | | | | | | | | | | | Closes gh-6849.
* | | | Merge pull request #6866 from charris/tempfile-context-managerCharles Harris2015-12-203-26/+75
|\ \ \ \ | | | | | | | | | | ENH: Tempfile context manager
| * | | | MAINT: Use temppath in test_not_closing_opened_fid.Charles Harris2015-12-202-23/+18
| | | | | | | | | | | | | | | | | | | | | | | | | The test is in numpy/lib/tests/test_io.py. This commit is intended as a demonstration of using temppath.
| * | | | ENH: Add context manager `temppath` to manage a temporary file.Charles Harris2015-12-192-5/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Context manager intended for use when the same temporary file needs to be opened and closed more than once. The context manager creates the file, closes it, and returns the path to the file. On exit from the context block the file is removed. The file should be closed before exiting the context as an error will be raised on windows if not. Also fix up the `tempdir` context manager to deal with exceptions. Tests are added for both `temppath` and `tempdir`.
* | | | | Merge pull request #6856 from charris/fixup-gh-4130Charles Harris2015-12-201-36/+37
|\ \ \ \ \ | | | | | | | | | | | | Fixup 4130, DOC: Update docstrings of np.sum and np.prod.
| * | | | | DOC: Clarify docstrings of np.sum and np.prod.Charles Harris2015-12-181-38/+37
| | | | | |
| * | | | | DOC: Update docstrings of np.sum and np.prod.Nathaniel Hellabyte2015-12-181-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Improved language of sum doc for axis subheading. Added clarification of important axis values--{0,1}->iterative {row,column} sum. * Improved language of product axis subheading.
* | | | | | Merge pull request #6859 from charris/fixup-gh-6799Charles Harris2015-12-201-6/+12
|\ \ \ \ \ \ | | | | | | | | | | | | | | Fixup 6799, DOC: doc mistake in ifft - closes #6798.
| * | | | | | DOC: Clarify documentation for np.fft.ifft.Charles Harris2015-12-181-8/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The relationship between frequency and position in the input array is clarified.
| * | | | | | Fix #6798Phaiax2015-12-181-2/+4
| | | | | | |
* | | | | | | MAINT: Remove commented out code blocksgfyoung2015-12-205-108/+0
| | | | | | |
* | | | | | | DOC: Use print only as function when print_function is imported from __future__gfyoung2015-12-1930-132/+132
| |_|/ / / / |/| | | | | | | | | | | | | | | | | Closes gh-6863.
* | | | | | Merge pull request #6858 from charris/fixup-gh-6612Charles Harris2015-12-181-3/+17
|\ \ \ \ \ \ | |/ / / / / |/| | | | | Fixup 6612, DOC: typo in the docstring of `random.multinomial`
| * | | | | DOC: Update example in np.random.multinomial.Charles Harris2015-12-181-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clarify that probabilities should be normalized. [ci skip]
| * | | | | DOC: typo in the docstring of random.multinomialEvgeni Burovski2015-12-181-2/+15
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Discuss a loaded dice with six sides. Also add the text about handling of input probabilities, as written by Robert Kern in gh-6612. [ci skip]
* | | | | DOC, MAINT: Fix the numpy.ma.cov signature and documentation.jason king2015-12-181-6/+7
|/ / / / | | | | | | | | | | | | The rowvar and bias parameters are booleans, not integers.
* | | | DEP: Stricter arg checking for array orderinggfyoung2015-12-185-14/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The bug traces to the PyArray_OrderConverter method in conversion_utils.c, where no errors are thrown if the ORDER parameter passed in is not of the string data-type or has a string value of length greater than one. This commit causes a DeprecationWarning to be raised, which will later be turned into a TypeError or another type of error in a future release. Closes gh-6598.
* | | | DOC: Some documentation fixups.Charles Harris2015-12-171-0/+2
| | | | | | | | | | | | | | | | | | | | Add '.. versionadded:: 1.11.0' to the new `extension` parameter in f2py.compile and document it in the 1.11.0 release notes.
* | | | BUG,ENH: Add extension parameter to f2py.compile and fix verbose.Alex Rogozhnikov2015-12-171-9/+25
| | | | | | | | | | | | | | | | | | | | 1. Verbose parameter was ignored earlier. 2. Allowed .f90 extensions for tempfiles
* | | | STY: Minor C style fixups for convert.c.Charles Harris2015-12-171-2/+4
| | | |
* | | | ENH: use linux fallocate to reserve diskspace in array.tofileJulian Taylor2015-12-173-1/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fallocate allows the filesystem to make smarter decisions about space allocation and gives a fast failure path for insufficient space. This is very important for filesystems that suffer a lot from fragmentation like btrfs. Restricted to linux only as that is the only system I know the behavior of. Other systems might also have this system call but we don't want to accidentally trigger explicit zeroing behavior as e.g. posix_fallocate would when there is no support for a real fallocate.
* | | | Merge pull request #6831 from gfyoung/spelling_correctionsCharles Harris2015-12-172-13/+13
|\ \ \ \ | | | | | | | | | | Minor Spelling and Grammar Corrections
| * | | | MAINT: minor spelling and grammar correctionsgfyoung2015-12-162-13/+13
| | | | |
* | | | | BUG: Fix use of python 3 only FileNotFoundError in test_f2py.Charles Harris2015-12-161-4/+5
|/ / / / | | | | | | | | | | | | | | | | Also rewrite error messages so that they read more like warnings than errors.
* | | | Correct reference to Johnk's algorithmJohn Bjorn Nelson2015-12-151-1/+1
| | | |
* | | | Merge pull request #6832 from gopalmeena/Patch6792Jaime2015-12-141-1/+1
|\ \ \ \ | | | | | | | | | | DOC: Fixes #6792 in numpy/numpy/random/mtrand/matrand.pyx
| * | | | Made changes in numpy/numpy/random/mtrand/matrand.pyxgopalmeena2015-12-151-1/+1
| | | | |
* | | | | Merge pull request #6825 from proinsias/numpy.distutils.ccompilerRalf Gommers2015-12-141-5/+3
|\ \ \ \ \ | | | | | | | | | | | | MAINT: remove duplicate import in distutils.ccompiler
| * | | | | MAINT: Resolve import naming collision and optimize importsFrancis T. O'Donovan2015-12-121-5/+3
| | | | | |
* | | | | | Merge pull request #6817 from cgohlke/patch-1Charles Harris2015-12-121-0/+6
|\ \ \ \ \ \ | | | | | | | | | | | | | | BUG: Disable 32-bit msvc9 compiler optimizations for npy_rint
| * | | | | | BUG: Disable 32-bit msvc9 compiler optimizations for npy_rintChristoph Gohlke2015-12-111-0/+6
| | | | | | |
* | | | | | | Merge pull request #6820 from madphysicist/patch-1Jaime2015-12-121-2/+2
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Updated typos in histogram bin estimator equations
| * | | | | | | Updated typos in histogram bin estimator equationsMad Physicist2015-12-111-2/+2
| |/ / / / / / | | | | | | | | | | | | | | In all cases, it's either ...*n^(-1/3) or .../n^(1/3), not both. The actual functions are implemented correctly.
* | | | | | | Merge pull request #6791 from Daetalus/bug_fixingNathaniel J. Smith2015-12-121-1/+14
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | BUG: Fix thinko in assert_deprecated()
| * | | | | | BUG: Fix thinko in assert_deprecated()Boxiang Sun2015-12-121-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | assert_deprecated() was recently reworked for stylistic changes (in 0aa32608 "STY: Minor style cleanups in tests and C code.") but made a thinko - `lst` is already a list of warnings, so we don't need to put that into [] braces when preparing assertion text. If we do the reporting breaks: In [1]: msg = "4 warnings found but 3 expected." In [2]: lst = ['CategoryA', 'CategoryB', 'CategoryC'] In [3]: n.join([msg] + [lst]) TypeError Traceback (most recent call last) ----> 1 n.join([msg] + [lst]) TypeError: sequence item 1: expected string, list found Fix it. Cc: Charles Harris <charlesr.harris@gmail.com>
* | | | | | | TST: Fix test_mvoid_multidim_print failures on Python 2.x for WindowsChristoph Gohlke2015-12-111-4/+4
| |/ / / / / |/| | | | |