为了账号安全,请及时绑定邮箱和手机立即绑定

AttributeError:使用jupyter笔记本,'NoneType'对象在pytho

AttributeError:使用jupyter笔记本,'NoneType'对象在pytho

千万里不及你 2021-05-30 09:32:11
有人可以告诉我我哪里出错了吗?这是我的代码和我得到的错误。ps我已经正确地给出了somefile.mrc路径。import numpyimport Mrca = Mrc.bindFile('home/smitha/deep-image-prior/data/Falcon_2015_05_14-20_42_18.mrc')# a is a NumPy array with the image data memory mapped from# somefile.mrc.  You can use it directly with any function# that will take a NumPy array.hist = numpy.histogram(a, bins=200)# a.Mrc is an instances of the Mrc class.  One thing# you can do with that class is print out key information from the header.a.Mrc.info()wavelength0_nm = a.Mrc.hdr.wave[0]()中的AttributeError Traceback(最近一次通话最后一次)(3)a = Mrc.bindFile('/ home / smitha / deep-image-prior / data / Falcon_2015_05_14-20_42_18.mrc')4 hist = numpy.histogram(a,bins = 200)----> 5 a.Mrc.info()6波长0_nm = a.Mrc.hdr.wave [0] 7AttributeError:“ NoneType”对象没有属性“ Mrc”
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 204 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信