AttributeError:“ NoneType”对象没有属性“ Mrc”

时间:2018-08-21 10:51:35

标签: python-3.x

以下代码出现错误。 有人可以告诉我我要去哪里了吗? ps。我已经正确给出了.mrcfile的路径

import numpy
import Mrc
a = Mrc.bindFile('somefile.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()
# Use a.Mrc.hdr to access the MRC header fields.
wavelength0_nm = a.Mrc.hdr.wave[0]
  

AttributeError跟踪(最近一次通话)        在()中             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]             7

     

AttributeError:'NoneType'对象没有属性'Mrc'

0 个答案:

没有答案