Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
导入 xspec 模块后尝试在 python 笔记本中加载光谱会给我以下错误。
PyCapsule_New 用空指针调用
可能的错误是什么?
该错误表示未找到其中一个文件,您可以在 jupyter 终端中查看错误消息。
尝试将光谱 (.pha)、背景 (.bak) 和响应 (.rsp) 文件复制到工作区的根路径,然后加载 xspec.Spectrum(filename)。