NumPy 1.14.1 发行说明#
这是针对 1.14.0 版本发布后报告的一些问题的错误修复版本.修复的主要问题如下.
新的数组打印问题,特别是复数值的打印,请报告可能出现的任何其他问题.
由于新的
optimized=True默认值导致np.einsum出现问题.已应用一些优化修复,并且optimize=False现在是默认值.当
axis=<某个数字>时,np.unique中的排序顺序现在将始终是子数组元素中的词典编纂顺序.在以前的 NumPy 版本中,有一种优化可能会导致将子数组作为无符号字节字符串进行排序.在 1.14.0 中,结构化数组的多字段索引返回视图而不是副本的更改已被恢复,但仍计划在 NumPy 1.15 中进行.受影响的用户应阅读 1.14.1 Numpy 用户指南部分"basics/structured arrays/accessing multiple fields",以获取有关如何管理此过渡的建议.
此版本支持的 Python 版本为 2.7 和 3.4 - 3.6. 通过 PIP 提供的 Python 3.6 wheels 使用 Python 3.6.2 构建,应与之前的所有 Python 3.6 版本兼容. 源代码版本已使用 Cython 0.26.1 cythonized,已知该版本不支持即将发布的 Python 3.7 版本. 希望运行 Python 3.7 的用户应检出 NumPy 仓库,并尝试使用尚未发布的 Cython master 分支进行构建.
贡献者#
共有 14 人为该版本的发布做出了贡献. 名字带有"+"的人是第一次贡献补丁.
Allan Haldane
Charles Harris
Daniel Smith
Dennis Weyland +
Eric Larson
Eric Wieser
Jarrod Millman
Kenichi Maehashi +
Marten van Kerkwijk
Mathieu Lamarre
Sebastian Berg
Simon Conseil
Simon Gibbons
xoviat
合并的拉取请求#
此版本总共合并了 36 个 pull request.
#10339 : BUG: restrict the __config__ modifications to win32
#10368 : MAINT: Adjust type promotion in linalg.norm
#10375 : BUG: add missing paren and remove quotes from repr of fieldless…
#10395 : MAINT: Update download URL in setup.py.
#10396 : BUG: fix einsum issue with unicode input and py2
#10397 : BUG: fix error message not formatted in einsum
#10398 : DOC: add documentation about how to handle new array printing
#10403 : BUG: Set einsum optimize parameter default to False .
#10424 : ENH: Fix repr of np.record objects to match np.void types #10412
#10425 : MAINT: Update zesty to artful for i386 testing
#10431 : REL: Add 1.14.1 release notes template
#10435 : MAINT: Use ValueError for duplicate field names in lookup (backport)
#10534 : BUG: Provide a better error message for out-of-order fields
#10536 : BUG: Resize bytes columns in genfromtxt (backport of #10401)
#10537 : BUG: multifield-indexing adds padding bytes: revert for 1.14.1
#10539 : BUG: fix np.save issue with python 2.7.5
#10540 : BUG: Add missing DECREF in Py2 int() cast
#10541 : TST: Add circleci document testing to maintenance/1.14.x
#10542 : BUG: complex repr has extra spaces, missing + (1.14 backport)
#10550 : BUG: Set missing exception after malloc
#10557 : BUG: In numpy.i, clear CARRAY flag if wrapped buffer is not C_CONTIGUOUS.
#10558 : DEP: Issue FutureWarning when malformed records detected.
#10559 : BUG: Fix einsum optimize logic for singleton dimensions
#10560 : BUG: Fix calling ufuncs with a positional output argument.
#10561 : BUG: Fix various Big-Endian test failures (ppc64)
#10562 : BUG: Make dtype.descr error for out-of-order fields.
#10563 : BUG: arrays not being flattened in union1d
#10607 : MAINT: Update sphinxext submodule hash.
#10608 : BUG: Revert sort optimization in np.unique.
#10609 : BUG: infinite recursion in str of 0d subclasses
#10610 : BUG: Align type definition with generated lapack
#10612 : BUG/ENH: 改进结构化非空类型的输出
#10622 : BUG: 释放 arrayprint.py 中的递归闭包 (1.14 向后移植)
#10624 : BUG: 正确识别逗号分隔的 dtype 字符串
#10629 : BUG: 释放 arrayprint.py 中的递归闭包 (向后移植…
#10630 : REL: 准备 1.14.1 版本发布.