| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
BUG: Fix f2py compile function testing.
|
| |
| |
| |
| |
| |
| | |
The tests were failing on platforms without a fortran compiler as that
was not being checked for. Add that check among others and clean up the
test functions a bit.
|
| |
| |
| |
| |
| |
| |
| | |
Create new file `test_compile_function.py` for the test, transferring
the content from `test_quoted_characters.py` where it was before. The
tricky part here is maintaining the history in both files after the
move.
|
|\ \
| | |
| | | |
MAINT: Reassociate `np.cast` with the comment describing it
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
This was used internally only by a private function that is also unused.
The loop adding type aliases was shown by #12007 to have no effect.
|
|/ / |
|
|\ \
| | |
| | | |
MAINT: Extract string helpers to a new private file
|
| | | |
|
|/ /
| |
| |
| | |
Now that we're using parametrize, may as well drop it in a few more places
|
|\ \
| |/
|/| |
DOC: removed spurious FIXME comment in number.c
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Corrects a mistake in gh-11246, where the base for this case was
set to the indexed subclass instance (like for a view). Since a
copy is made in this case, the base should be the new ndarray that
holds the indexed values.
Thanks to @yymao for noticing and reporting the bug in astropy.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* DOC: add docstring for np.float16 (see #10106)
* DOC: add docstrings for uint8, uint16, uint32, uint64 (see #10106)
* DOC: make numeric types' docstrings char codes formatting consistent
* DOC: Adding documentation to C/Python compatible names of scalar types
* DOC: Adding platform-dependent aliases to scalar type docstrings
* DOC: Fix typos and minor issues in scalar type docstrings
* DOC: Add hard-coded aliases to scalar type docstrings
* DOC: Fix platform-dependent aliases in doc string of scalar types
* DOC: Fix indentation of numeric types' docstring
* TST: Add test checking for platform-dependent generation of numeric type docstrings
* TST: Fix docstring test failures when PYTHONOPTIMIZE/Py_OptimizeFlag > 1
* TST: Moving check of PYTHONOPTIMIZE for test_numerictypes.py::TestDocStrings into pytest.mark.skip decorator
* DOC: Cleanup code for adding docstrings to numeric types and mention canonical type name
* DOC: Cleaning up access of numeric type objects and character codes in dynamic docstring generation
* DOC: Prepend 'np.' to numeric type docstrings
* MAINT: Remove dead code, rename function
* DOC: Cleaning up numeric_type_aliases in core/_add_newdocs.py
* DOC: Fixing dynamic aliases in docstrings for complex scalar types
* DOC: Removing docstrings for complex scalar types in numpy/core/src/multiarray/scalartypes.c.src, as they are now set in numpy/core/_add_newdocs.py
* DOC: Merging lists of different dynamic aliases into one, and prepending 'np.' to fixed aliases
* DOC: Adding scalar type docstring improvements to release notes
* DOC: Tweak release notes
|
|\ \
| | |
| | | |
TST: Add more tests for np.pad
|
| | |
| | |
| | |
| | | |
rounds to `float`
|
| | |
| | |
| | |
| | | |
The test is marked xfail right now as it is not fixed in master
|
| | | |
|
|\ \ \
| | | |
| | | | |
BUG: fix cached allocations without the GIL
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
There currently only is a global cache for small allocations so the
functions must be called while the GIL is held.
Ensure this by checking the GIL state in debug mode (which is tested via
a ci configuration).
Closes gh-11942
|
|\ \ \ \
| | | | |
| | | | | |
MAINT/DOC: Show the location of an empty list in np.block
|
| | | | | |
|
| | | | | |
|
|/ / / /
| | | |
| | | |
| | | |
| | | | |
* replaced the usage of exec_command() in the
f2py init with standard library equivalent
|
|\ \ \ \
| | | | |
| | | | | |
MAINT: remove usage of exec_command in config.py
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* replace usage of exec_command() with standard
library equivalent in the distutils config
module
|
|\ \ \ \ \
| | | | | |
| | | | | | |
TST: Add a test for np.pad where constant_values is an object
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | |_|/ /
| |/| | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
|/ / / /
| | | |
| | | |
| | | | |
Replaced the usage of exec_command() in distutils ibm module with subprocess.check_output
|
|\ \ \ \
| | | | |
| | | | | |
MAINT: test NPY_INTERNAL_BUILD only if defined
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
When using GCC 4.4.7 on RHEL 6 to compile a C program that embeds Python
and includes numpy/core/include/numpy/npy_common.h, and the compiler is
configured to warn about all questionable constructions (-Wall) and warn
about undefined identifiers (-Wundef), it will emit a warning like
/tmp/python-2.7.15/lib/python2.7/site-packages/numpy/core/include/numpy/npy_common.h:17:5: warning: "NPY_INTERNAL_BUILD" is not defined
The warning is because npy_common.h contains
#if NPY_INTERNAL_BUILD
#ifndef NPY_INLINE_MATH
#define NPY_INLINE_MATH 1
#endif
#endif
Eliminate this warning by changing the #if expression to test
NPY_INTERNAL_BUILD only if it is defined. (This preserves the original
behavior because in the original, when NPY_INTERNAL_BUILD is undefined,
the preprocessor treats it as 0 (false).)
|
|\ \ \ \ \
| | | | | |
| | | | | | |
DEP: finish making all comparisons to NaT false
|
| |/ / / /
| | | | |
| | | | |
| | | | | |
Closes gh-11945
|
|\ \ \ \ \
| | | | | |
| | | | | | |
MAINT: Extract tangential improvements made in #11175
|
| | | | | | |
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
MAINT: Small tidy-ups to `np.core._dtype`
|
| | | | | | |
|
| | | | | | |
|
|\ \ \ \ \ \
| |/ / / / /
| | / / / /
| |/ / / /
|/| | | | |
MAINT: Move np.dtype.name.__get__ to python
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This shares a lot of code with part of `dtype.__repr__`, and it's helpful to get it all in one place.
This fixes possible but unlikely segfaults if `PyUString_ConcatAndDel` fails.
|
| |/ / /
|/| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
After the pytest migration, test classes no longer inherit
from unittest.TestCase and and the fail method does not
exist anymore.
In all these cases, we can use assert_raises and assert_raises_regex instead
|
|\ \ \ \
| |/ / /
|/| | | |
DOC: #defining -> #define / Added a short explanation for Numeric
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
is archaic.
|