Changeset 2831


Ignore:
Timestamp:
07/31/13 19:18:39 (11 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: Yes

What Interface Changed: Renamed function names which previously didn't properly express the nature of functions.

Test Programs:

Put in Release Notes: No

Module(s):

Description:

Renamed function names after the discussion with Wataru.
New names:

  • python_Scantable::_is_all_chan_flagged (was: _getflagtrafast)
  • ScantableWrapper::isAllChannelsFlagged (was: getFlagtraFast)
  • Scantable::isAllChannelsFlagged (was: getFlagtraFast)

Also, isAllChannelsFlagged checks FLAGROW value.

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r2819 r2831  
    24852485}
    24862486
    2487 bool Scantable::getFlagtraFast(uInt whichrow)
    2488 {
     2487bool Scantable::isAllChannelsFlagged(uInt whichrow)
     2488{
     2489  uInt rflag;
     2490  flagrowCol_.get(whichrow, rflag);
     2491  if (rflag > 0)
     2492    return true;
    24892493  uChar flag;
    24902494  Vector<uChar> flags;
  • trunk/src/Scantable.h

    r2820 r2831  
    521521  void regridSpecChannel( double dnu, int nchan=-1 ) ;
    522522
    523   bool getFlagtraFast(casa::uInt whichrow);
     523  bool isAllChannelsFlagged(casa::uInt whichrow);
    524524
    525525  std::vector<std::string> applyBaselineTable(const std::string& bltable,
  • trunk/src/ScantableWrapper.h

    r2820 r2831  
    327327  { return table_->formatPiecewiseBaselineParams(ranges, params, fixed, rms, -1, masklist, whichrow, verbose, csvformat); }
    328328
    329   bool getFlagtraFast(int whichrow=0) const
    330   { return table_->getFlagtraFast(casa::uInt(whichrow)); }
     329  bool isAllChannelsFlagged(int whichrow=0) const
     330  { return table_->isAllChannelsFlagged(casa::uInt(whichrow)); }
    331331
    332332  std::vector<float> execFFT(int whichrow, const std::vector<bool>& mask, bool getRealImag=false, bool getAmplitudeOnly=false)
  • trunk/src/python_Scantable.cpp

    r2820 r2831  
    162162    .def("format_blparams_row", &ScantableWrapper::formatBaselineParams)
    163163    .def("format_piecewise_blparams_row", &ScantableWrapper::formatPiecewiseBaselineParams)
    164     .def("_getflagtrafast", &ScantableWrapper::getFlagtraFast,
     164    .def("_is_all_chan_flagged", &ScantableWrapper::isAllChannelsFlagged,
    165165         (boost::python::arg("whichrow")=0) )
    166166    .def("_fft", &ScantableWrapper::execFFT)
Note: See TracChangeset for help on using the changeset viewer.