Numpy1.16.4版本修复了1.16.3版本中报告的错误,并且还从master中移植了一些似乎适合于最后一个支持Python2.7的版本系列的增强功能。PyPI上的控制盘与openblasv0.3.7-dev相链接,后者应该可以修复Skylake系列cpu上的问题。
构建这个版本的下游开发人员应该使用Cython>=0.29.2,如果使用OpenBLAS,那么OpenBLAS>v0.3.7。支持的Python版本是2.7和3.5-3.7。
当从C-API创建一个数组来包装指向数据的指针时,我们对数据读写性质的唯一指示就是 writeable 创建期间设置的标志。强迫国旗可写是危险的。将来将无法将可写标志切换到 True 来自python。这种不推荐应该不会影响许多用户,因为以这种方式创建的数组在实践中非常罕见,并且只能通过numpyc-API获得。
writeable
True
由于log在应用于随机浮点数时的缺陷,当从 np.random.beta , np.random.binomial , np.random.laplace , np.random.logistic , np.random.logseries 或 np.random.multinomial 如果在底层MT19937随机流中生成0。有一个1英寸 发生这种情况的可能性,因此任何给定种子的流发生变化的概率非常小。如果在基础生成器中遇到0,则会生成不正确的值(或者 np.inf 或 np.nan )现在已删除。
np.random.beta
np.random.binomial
np.random.laplace
np.random.logistic
np.random.logseries
np.random.multinomial
np.inf
np.nan
numpy.lib.recfunctions.structured_to_unstructured
以前 structured_to_unstructured(arr[['a']]) 会产生一个与 structured_to_unstructured(arr[['a', b']]) . 这是偶然的。旧的行为可以保留下来 structured_to_unstructured(arr[['a']]).squeeze(axis=-1) 或者更简单地说, arr['a'] .
structured_to_unstructured(arr[['a']])
structured_to_unstructured(arr[['a', b']])
structured_to_unstructured(arr[['a']]).squeeze(axis=-1)
arr['a']
一共有10个人参与了这次发布。名字中带有“+”的人第一次贡献了一个补丁。
查尔斯·哈里斯
埃里克维泽
丹尼斯·佐洛+
猎人达姆隆+
李京北+
凯文谢泼德
马蒂库皮斯
尼古拉·索兰佐+
塞巴斯蒂安伯格
泰勒雷迪
此版本总共合并了16个pull请求。
#13392 :BUG:某些PyPy版本缺少PyStructSequenceu InitType2。
#13394: MAINT, DEP: Fix deprecated assertEquals()
assertEquals()
#13396 :BUG:修复单个字段类型上的结构化u到非结构化u(backport)
#13549 :BLD:使用pytest 4.5使CI再次通过
#13552 :TST:在中注册标记确认测试.py.
#13559 :BUG:删除arraymulteru new中空kwargs的ValueError
#13560 :BUG:将TypeError添加到crackfortran中接受的异常。
#13561 :在subru中处理错误
#13562 :BUG:保护生成器不受日志影响(0.0)
#13563 :BUG:在以下情况下总是将视图从结构化返回到非结构化。。。
#13564 :BUG:检查编译器版本时捕获stderr
#13565 :BUG:longdouple(int)不起作用
#13587 :BUG:distutils/系统_信息.py修复缺少的子进程导入(#13523)
#13620 :BUG,DEP:修复无基数组的可写标志设置
#13641 :MAINT:准备1.16.4版本。
#13644 :BUG:打印rel-、abs错误时的特殊情况对象数组