有人可以告诉我我哪里出错了吗?这是我的代码和我得到的错误。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”
添加回答
举报
0/150
提交
取消