Last change
on this file since 2360 was
2360,
checked in by Takeshi Nakazato, 12 years ago
|
New Development: No
JIRA Issue: Yes CAS-2816
Ready for Test: No
Interface Changes: Yes
What Interface Changed: Added interface to select polarization
Test Programs: List test programs
Put in Release Notes: Yes/No?
Module(s): Module Names change impacts.
Description: Describe your changes here...
Polarization selection support.
Default is all polarization components.
|
File size:
1.1 KB
|
Rev | Line | |
---|
[2356] | 1 | //#--------------------------------------------------------------------------- |
---|
| 2 | //# python_STGrid.cc: python exposure of c++ STGrid class |
---|
| 3 | //#--------------------------------------------------------------------------- |
---|
| 4 | #include <string> |
---|
[2360] | 5 | #include <vector> |
---|
[2356] | 6 | |
---|
| 7 | #include <boost/python.hpp> |
---|
| 8 | #include <boost/python/args.hpp> |
---|
| 9 | |
---|
| 10 | #include "STGrid.h" |
---|
| 11 | //#include "STGridWrapper.h" |
---|
| 12 | |
---|
| 13 | using namespace boost::python; |
---|
| 14 | |
---|
| 15 | namespace asap { |
---|
| 16 | namespace python { |
---|
| 17 | |
---|
| 18 | void python_STGrid() { |
---|
| 19 | //class_<STGridWrapper>("stgrid") |
---|
| 20 | class_<STGrid>("stgrid") |
---|
| 21 | .def( init <> () ) |
---|
| 22 | .def( init < const std::string > () ) |
---|
| 23 | //.def( init < const STGrid& > () ) |
---|
| 24 | // .def("_defineimage", &STGridWrapper::defineImage) |
---|
| 25 | // .def("_setoption", &STGridWrapper::setOption) |
---|
| 26 | // .def("_grid", &STGridWrapper::grid) |
---|
[2360] | 27 | .def("_setpollist", &STGrid::setPolList) |
---|
[2356] | 28 | .def("_defineimage", &STGrid::defineImage) |
---|
| 29 | .def("_setoption", &STGrid::setOption) |
---|
| 30 | .def("_grid", &STGrid::grid) |
---|
| 31 | .def("_setin", &STGrid::setFileIn) |
---|
| 32 | // .def("_setout", &STGrid::setFileOut) |
---|
| 33 | .def("_save", &STGrid::saveData) |
---|
| 34 | ; |
---|
| 35 | }; |
---|
| 36 | |
---|
| 37 | } // python |
---|
| 38 | } // asap |
---|
Note: See
TracBrowser
for help on using the repository browser.