Changeset 1727 for trunk


Ignore:
Timestamp:
04/28/10 11:28:37 (15 years ago)
Author:
Malte Marquarding
Message:

Ticket #181: temporary fix for saving memory tables with selection. This needs to be fixed in casacore itself. Remove when new release of casacore is available.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r1694 r1727  
    429429  /// @todo reindex SCANNO, recompute nbeam, nif, npol
    430430  inname = path.expandedName();
    431   table_.deepCopy(inname, Table::New);
     431  // WORKAROUND !!! for Table bug
     432  // Remove when fixed in casacore
     433  if ( table_.tableType() == Table::Memory  && selector_.empty() ) {
     434    Table tab = table_.copyToMemoryTable(generateName());
     435    tab.deepCopy(inname, Table::New);
     436  } else {
     437    table_.deepCopy(inname, Table::New);
     438  }
    432439}
    433440
  • trunk/src/Scantable.h

    r1694 r1727  
    411411   */
    412412  void parallactify(bool flag)
    413   {focus().setParallactify(flag);}
     413    { focus().setParallactify(flag); }
     414
    414415private:
    415416
Note: See TracChangeset for help on using the changeset viewer.