Coverage for python/astshim/fitsTableContinued.py : 29%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
"""Retrieve the column data in the correct type and shape.
Parameters ---------- column : `str` Name of the column to retrieve.
Returns ------- data : `list` of `numpy.array`
""" nrows = self.nRow shape = self.columnShape(column) dtype = self.columnType(column)
if dtype == _DataType.DoubleType: newshape = list(shape) newshape.append(nrows) coldata = self.getColumnData1D(column) coldata = coldata.reshape(newshape, order="F") else: raise ValueError("Can only retrieve double column data") return coldata
|