Changeset 2594 for trunk/src/STGrid.cpp


Ignore:
Timestamp:
07/11/12 10:22:40 (12 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: sdgrid unit test with sd.rcParamsscantable.storage?='memory'

Put in Release Notes: Yes/No?

Module(s): Module Names change impacts.

Description: Describe your changes here...

Bug fix on STGrid2.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STGrid.cpp

    r2593 r2594  
    17241724{
    17251725  // values for fill
    1726   Table t( infileList_[0], Table::Old ) ;
     1726  //Table t( infileList_[0], Table::Old ) ;
     1727  Table t ;
     1728  table( t, 0 ) ;
    17271729  Table tsel = t( t.col( "IFNO" ) == (uInt)ifno_, 1 ) ;
    17281730  ROTableRow row( tsel ) ;
     
    18321834}
    18331835
    1834 ScantableWrapper STGrid2::getResultAsScantable()
    1835 {
    1836   CountedPtr<Scantable> s = new Scantable( Table::Plain ) ;
     1836ScantableWrapper STGrid2::getResultAsScantable( int tp )
     1837{
     1838  Table::TableType ttype = (tp==0) ? Table::Memory : Table::Plain ;
     1839  ScantableWrapper sw( ttype ) ;
     1840  CountedPtr<Scantable> s = sw.getCP() ;
    18371841  s->setHeader( dataList_[0].getCP()->getHeader() ) ;
    18381842  Table tout, tin ;
     
    18451849  }
    18461850  fillTable( s->table() ) ;
    1847   ScantableWrapper sw( s ) ;
    18481851  return sw ;
    18491852}
Note: See TracChangeset for help on using the changeset viewer.