Ignore:
Timestamp:
04/05/06 14:31:47 (18 years ago)
Author:
mar637
Message:

implemented data export for the asap2 Scantable as in Ticket #4.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/python_STWriter.cpp

    r892 r988  
    11//#---------------------------------------------------------------------------
    2 //# python_SDWriter.cc: Python binding to C++ SDWriter class.
     2//# python_STWriter.cc: Python binding to C++ SDWriter class.
    33//#---------------------------------------------------------------------------
    44//# Copyright (C) 2004
     
    3131#include <boost/python.hpp>
    3232
    33 #include "SDWriterWrapper.h"
     33#include "STWriterWrapper.h"
    3434
    3535using namespace boost::python;
     
    3838  namespace python  {
    3939
    40 void python_SDWriter() {
    41   class_<SDWriterWrapper>("sdwriter")
    42     .def(init <> ())
    43     .def(init <std::string> ())
    44     .def("setformat", &SDWriterWrapper::setFormat,
    45         (boost::python::arg("format")="SDFITS"))
    46     .def("write",     &SDWriterWrapper::write);
    47   ;
    48 };
    49 
     40    void python_STWriter() {
     41      class_<STWriterWrapper>("stwriter")
     42        .def(init <> ())
     43        .def(init <std::string> ())
     44        .def("setformat", &STWriterWrapper::setFormat,
     45        (boost::python::arg("format")="STFITS"))
     46        .def("write",     &STWriterWrapper::write);
     47      ;
     48    };
    5049  } // namespace python
    5150} // namespace asap
Note: See TracChangeset for help on using the changeset viewer.