Changeset 2114 for branches


Ignore:
Timestamp:
04/06/11 19:23:51 (14 years ago)
Author:
Kana Sugimoto
Message:

merged fixes in trunk (r2111)

Location:
branches/casa-prerelease/pre-asap/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/casa-prerelease/pre-asap/src

  • branches/casa-prerelease/pre-asap/src/SConscript

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/casa-prerelease/pre-asap/src/Scantable.cpp

    r2095 r2114  
    944944}
    945945
    946 std::string Scantable::summary( bool verbose )
     946
     947std::string Scantable::headerSummary( bool verbose )
    947948{
    948949  // Format header info
     950//   STHeader sdh;
     951//   sdh = getHeader();
     952//   sdh.print();
    949953  ostringstream oss;
    950   oss << endl;
    951   oss << asap::SEPERATOR << endl;
    952   oss << " Scan Table Summary" << endl;
    953   oss << asap::SEPERATOR << endl;
    954954  oss.flags(std::ios_base::left);
    955955  oss << setw(15) << "Beams:" << setw(4) << nbeam() << endl
     
    994994  oss << setw(15) << "Abcissa:" << getAbcissaLabel(0) << endl;
    995995  oss << selector_.print() << endl;
     996  /// @todo implement verbose mode
     997  return String(oss);
     998}
     999
     1000std::string Scantable::summary( bool verbose )
     1001{
     1002  ostringstream oss;
    9961003  oss << endl;
     1004  oss << asap::SEPERATOR << endl;
     1005  oss << " Scan Table Summary" << endl;
     1006  oss << asap::SEPERATOR << endl;
     1007
     1008  // Format header info
     1009  oss << headerSummary(verbose);
     1010  oss << endl;
     1011
    9971012  // main table
    9981013  String dirtype = "Position ("
    9991014                  + getDirectionRefString()
    10001015                  + ")";
     1016  oss.flags(std::ios_base::left);
    10011017  oss << setw(5) << "Scan" << setw(15) << "Source"
    10021018      << setw(10) << "Time" << setw(18) << "Integration"
  • branches/casa-prerelease/pre-asap/src/Scantable.h

    r2095 r2114  
    371371    { historyTable_.append(otherhist); }
    372372
     373  std::string headerSummary(bool verbose=false);
    373374  std::string summary(bool verbose=false);
    374375  //std::string getTime(int whichrow=-1, bool showdate=true) const;
  • branches/casa-prerelease/pre-asap/src/ScantableWrapper.h

    r2095 r2114  
    218218  }
    219219
     220  std::string listHeader(bool verbose=false) const {
     221    return table_->headerSummary(verbose);
     222  }
     223
    220224  std::vector<std::string> getHistory()const
    221225    { return table_->getHistory(); }
  • branches/casa-prerelease/pre-asap/src/python_Scantable.cpp

    r2047 r2114  
    119119    .def("_summary",  &ScantableWrapper::summary,
    120120         (boost::python::arg("verbose")=true) )
     121    .def("_list_header",  &ScantableWrapper::listHeader,
     122         (boost::python::arg("verbose")=true) )
    121123    //.def("_getrestfreqs",  &ScantableWrapper::getRestFrequencies)
    122124    .def("_getrestfreqs",  &ScantableWrapper::getRestFrequency)
Note: See TracChangeset for help on using the changeset viewer.