Ignore:
Timestamp:
11/10/10 14:48:15 (13 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: Yes

What Interface Changed:
+ An optional parameter 'prec (unsigned int)' is added to

scantable.get_time, python_Scantable::_gettime, ScantableWrapper::getTime and Scantable::getTime.

+ Also Scantable::fromatTime accepts 'prec' as a parameter.
+ scantable._get_column accepts args which will be passed to callback function.

Test Programs:

Put in Release Notes: No

Module(s): scantable

Description:

Add a parameter prec to scantable.get_time which specifies the precision of time returned.
The default value is prec=0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ScantableWrapper.h

    r1931 r1947  
    8484    { return table_->getTsys(whichrow); }
    8585
    86   std::string getTime(int whichrow=0) const
    87     { return table_->getTime(whichrow); }
     86  //std::string getTime(int whichrow=0) const
     87  //  { return table_->getTime(whichrow); }
     88  std::string getTime(int whichrow=0, int prec = 0) const
     89    { return table_->getTime(whichrow, true, casa::uInt(prec)); }
    8890
    8991  double getIntTime(int whichrow=0) const
Note: See TracChangeset for help on using the changeset viewer.