首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ratcave:“scipy.spatial.transform.rotation.Rotation”对象没有属性“as_dcm”

ratcave:“scipy.spatial.transform.rotation.Rotation”对象没有属性“as_dcm”
EN

Stack Overflow用户
提问于 2021-01-08 19:29:23
回答 1查看 2.1K关注 0票数 1

我是python编程的初学者。我正在尝试使用ratcave和PyWavefront来创建obj导入器。

当我刚刚编写这段代码时,错误显示为

enter image description here

AttributeError:“scipy.spatial.transform.rotation.Rotation”对象没有特性“”as_dcm“”

我能做什么?

代码语言:javascript
复制
import pyglet
import ratcave as rc


# Create Window
window = pyglet.window.Window()


pyglet.app.run()
EN

回答 1

Stack Overflow用户

发布于 2021-01-12 16:25:59

方法名称似乎已更改为from_matrix

scipy.spatial.Rotation方法中,from_dcmas_dcm分别重命名为from_matrixas_matrix

参考:https://github.com/scipy/scipy/blob/5f4c4d802e5a56708d86909af6e5685cd95e6e66/doc/release/1.4.0-notes.rst

我希望这个问题得到解决。

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65628149

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档