1 __all__ = [
"FitsTable",
"getColumnData"]
4 from .fitsTable
import FitsTable
8 """Retrieve the column data in the correct type and shape.
13 Name of the column to retrieve.
17 data : `list` of `numpy.array`
21 shape = self.columnShape(column)
22 dtype = self.columnType(column)
24 if dtype == base.DataType.DoubleType:
25 newshape =
list(shape)
26 newshape.append(nrows)
27 coldata = self.getColumnData1D(column)
28 coldata = coldata.reshape(newshape, order=
"F")
30 raise ValueError(
"Can only retrieve double column data")
34 FitsTable.getColumnData = getColumnData