成功解决\h5py\__init__.py:34: FutureWarning: Conversion of the second argument of issubdtype from `float

成功解决\h5py\__init__.py:34: FutureWarning: Conversion of the second argument of issubdtype from `float


解决问题

\h5py\__init__.py:34: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters

解决思路

此警告信息发生在h5py\__init__.py文件内
未来警告:将issubdtype的第二个参数从“float”转换为“np.floating”被弃用。在未来,它将被视为`np.float64 == np.dtype(float).type`
  from ._conv import register_converters as _register_converters

解决方法

此信息提示为警告,而不是error,即使不处理也不会影响代码编程的运行。如果想要去掉,可以更新库至最新版本!
然后根据提示修改使用方法!
np.float64 == np.dtype(float).type

(0)

相关推荐