14 # pragma warning(disable:4231)
17 # pragma warning(disable:4251)
20 # pragma warning(disable:4275)
23 # pragma warning(disable:4800)
27 #include <boost/python.hpp>
32 using namespace boost::python;
40 class_ < FitsNTuple, bases < DataSource > >
42 "a derived class of DataSource that references a table or image in a\n"
43 "FITS file. A FitNTuple object must be created by the FitsController."
44 "Changes made to this object will not be reflected in the FITS file.",
49 (
const std::string &,
50 const std::vector < double > & ) )
51 &FitsNTuple::addColumn,
52 "addColumn ( string, list or tuple ) -> value\n"
54 "Adds a column to the data source. The string argument is used\n"
55 "for the label of the new column. The length of the new column\n"
56 "must the same as existing columns. The value returns is the\n"
57 "index to the column." )
59 .def (
"replaceColumn",
61 (
const std::string &,
62 const std::vector < double > & ) )
63 &DataSource::replaceColumn,
64 "replaceColumn ( index, list ) -> None\n"
65 "replaceColumn ( label, list ) -> None\n"
67 "Replaces the column of data by index or label. Does not\n"
68 "modify the FITS file." )
70 .def (
"replaceColumn",
73 const std::vector < double > & ) )
74 &FitsNTuple::replaceColumn )