I am on PyCharm (community edition 4.0.2) retrieving data from a .fits file. z = data.field [SDSS_Z] results in TypeError: 'instancemethod' object has no attribute 'getitem'. On other Field of the same .fits file I have no problems
import pyfits
import pylab as plt
import numpy as np
plt.close('all')
hdu = pyfits.open('cat.v9.group_v22.fits')
print hdu[1].columns
data = hdu[1].data
u = data.field('U')
r = data.field('R')
k = data.field('LOG_MSTELLAR_KS')
morph = data["GZ1_MORPHOLOGY"]
lum = data["L_O3"]
z = data.field ["SDSS_Z"]