| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
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.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
DOC: update min nose version in import error message
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Addresses comment in gh-4074.
|
|/ / / / / / |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
[FIX] fix NoseTester's raise_warning default
|
| | | | | | | |
|
| | |/ / / /
| |/| | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
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.)
|
|/ / / / / |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
| | | | | |
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
BUG: Fix tempfile failures on window.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Temporary files on windows cannot be held open by two files at
once.
|
| | | | | |
|
|/ / / /
| | | |
| | | |
| | | | |
Closes gh-6849.
|
|\ \ \ \
| | | | |
| | | | | |
ENH: Tempfile context manager
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The test is in numpy/lib/tests/test_io.py. This commit is intended
as a demonstration of using temppath.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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`.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fixup 4130, DOC: Update docstrings of np.sum and np.prod.
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* 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.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Fixup 6799, DOC: doc mistake in ifft - closes #6798.
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
The relationship between frequency and position in the input array
is clarified.
|
| | | | | | | |
|
| | | | | | | |
|
| |_|/ / / /
|/| | | | |
| | | | | |
| | | | | | |
Closes gh-6863.
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
Fixup 6612, DOC: typo in the docstring of `random.multinomial`
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Clarify that probabilities should be normalized.
[ci skip]
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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]
|
|/ / / /
| | | |
| | | |
| | | | |
The rowvar and bias parameters are booleans, not integers.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Add '.. versionadded:: 1.11.0' to the new `extension` parameter
in f2py.compile and document it in the 1.11.0 release notes.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
1. Verbose parameter was ignored earlier.
2. Allowed .f90 extensions for tempfiles
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
|\ \ \ \
| | | | |
| | | | | |
Minor Spelling and Grammar Corrections
|
| | | | | |
|
|/ / / /
| | | |
| | | |
| | | |
| | | | |
Also rewrite error messages so that they read more like warnings
than errors.
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
DOC: Fixes #6792 in numpy/numpy/random/mtrand/matrand.pyx
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
MAINT: remove duplicate import in distutils.ccompiler
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
BUG: Disable 32-bit msvc9 compiler optimizations for npy_rint
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Updated typos in histogram bin estimator equations
|
| |/ / / / / /
| | | | | | |
| | | | | | | |
In all cases, it's either ...*n^(-1/3) or .../n^(1/3), not both. The actual functions are implemented correctly.
|
|\ \ \ \ \ \ \
| |_|/ / / / /
|/| | | | | | |
BUG: Fix thinko in assert_deprecated()
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
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>
|
| |/ / / / /
|/| | | | | |
|