有人可以告訴我我哪里出錯了嗎?這是我的代碼和我得到的錯誤。ps我已經(jīng)正確地給出了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
提交
取消