[Numpy-discussion] recarray field names
erin.sheldon at gmail.com
Wed Mar 15 12:21:04 CST 2006
I'm new to numpy and I'm slowly weening myself off of IDL. So far the
experience has been very positive.
I use recarrays a lot. I often read these recarrays from fits files
using pyfits (modified to work with numpy). I find myself doing the
following more than I would like:
if 'TAG' in rec._coldefs.names:
It seems messy to be accessing this "hidden" attribute in this way.
Is there a plan to add methods to more transparently do such things?
return fieldname.upper() in _coldefs.names
return -1 # or None maybe
More information about the Numpy-discussion