Object 插值后如何将对象转换为数字?

Object 插值后如何将对象转换为数字?,object,interpolation,Object,Interpolation,将光谱插值到新轴后 a = spec[1,:] = scipy.interpolate.interp1d(x, spec[1,:], 'linear') 发生错误: TypeError: float() argument must be a string or a number, not 'interp1d' 在Variablen浏览器中: a=<scipy.interpolate.interpolate.interp1d object at 0x7f12943f8cc0>

将光谱插值到新轴后

 a = spec[1,:] = scipy.interpolate.interp1d(x, spec[1,:], 'linear')
发生错误:

TypeError: float() argument must be a string or a number, not 'interp1d'
在Variablen浏览器中:

a=<scipy.interpolate.interpolate.interp1d object at 0x7f12943f8cc0>
a=
如何将其转换为可打印的数字/浮点