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

有人可以告诉我我哪里出错了吗?这是我的代码和我得到的错误。ps我已经正确地给出了somefile.mrc路径。


import numpy

import Mrc

a = 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] 7


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


千万里不及你
浏览 205回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python