Ignore:
Timestamp:
07/02/13 10:38:18 (11 years ago)
Author:
Malte Marquarding
Message:

Issue #291: added scantable.set_sourcename to overwrite sourcename to allow freq_align to work. Exposed 'SOURCE' averaging to python api. Added some logging to freq_align refering to the sources it aligns to

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r2813 r2818  
    180180        table_ = TableCopy::makeEmptyMemoryTable(newname,
    181181                                                 other.table_, True);
    182       } else
     182      } else {
    183183        table_ = other.table_.copyToMemoryTable(newname);
     184      }
    184185  } else {
    185186      other.table_.deepCopy(newname, Table::New, False,
     
    450451  TableVector<Int> tabvec(table_, "SRCTYPE");
    451452  tabvec = Int(stype);
     453}
     454
     455void Scantable::setSourceName( const std::string& name )
     456{
     457  TableVector<String> tabvec(table_, "SRCNAME");
     458  tabvec = name;
    452459}
    453460
Note: See TracChangeset for help on using the changeset viewer.