Changeset 433


Ignore:
Timestamp:
02/14/05 17:57:06 (20 years ago)
Author:
kil064
Message:

add arg 'doAll' to rotateXYPhase and no longer'
use direct python binding

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMemTable.cc

    r430 r433  
    16081608
    16091609
    1610 void SDMemTable::rotateXYPhase (Float value)
     1610void SDMemTable::rotateXYPhase (Float value, Bool doAll)
    16111611//
    16121612// phase in degrees
     
    16261626   for (uInt i=0; i<nRow;++i) {
    16271627      specCol_.get(i,data);
    1628       end = data.shape()-1;
     1628      IPosition shape = data.shape();
     1629
     1630// Set slice
     1631
     1632      if (!doAll) {
     1633         setCursorSlice (start, end, shape);
     1634      } else {
     1635         end = shape-1;
     1636      }
    16291637
    16301638// Get polarization slice references
  • trunk/src/SDMemTable.h

    r430 r433  
    239239
    240240// Rotate phase of XY correlation by specified value (degrees)
    241   void rotateXYPhase (casa::Float angle);
     241  void rotateXYPhase (casa::Float angle, casa::Bool doAll);
    242242
    243243// Helper function to check instrument (antenna) name and give enum
  • trunk/src/SDMemTableWrapper.h

    r431 r433  
    187187  }
    188188
    189   void rotateXYPhase (float value) {
    190       table_->rotateXYPhase(value);
     189  void rotateXYPhase (float value, bool doAll) {
     190      table_->rotateXYPhase(value, doAll);
    191191  }
    192192
  • trunk/src/python_SDMemTable.cc

    r431 r433  
    6262    .def("setbeam", &SDMemTableWrapper::setBeam)
    6363    .def("setpol", &SDMemTableWrapper::setPol)
    64     .def("rotate_xyphase", &SDMemTableWrapper::rotateXYPhase,
    65          (boost::python::arg("angle")=0.0) )
     64    .def("_rotate_xyphase", &SDMemTableWrapper::rotateXYPhase)
    6665    .def("_setmask", &SDMemTableWrapper::setMask)
    6766    .def("get_fluxunit", &SDMemTableWrapper::getFluxUnit)
Note: See TracChangeset for help on using the changeset viewer.