Changeset 1947 for trunk/src/Scantable.h


Ignore:
Timestamp:
11/10/10 14:48:15 (14 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/Scantable.h

    r1931 r1947  
    368368
    369369  std::string summary(bool verbose=false);
    370   std::string getTime(int whichrow=-1, bool showdate=true) const;
     370  //std::string getTime(int whichrow=-1, bool showdate=true) const;
     371  std::string getTime(int whichrow=-1, bool showdate=true, casa::uInt prec=0) const;
    371372  double getIntTime(int whichrow) const { return integrCol_(whichrow); }
    372373
     
    505506
    506507  std::string formatTime(const casa::MEpoch& me, bool showdate)const;
     508  std::string formatTime(const casa::MEpoch& me, bool showdate, casa::uInt prec)const;
    507509
    508510  /**
Note: See TracChangeset for help on using the changeset viewer.