Ignore:
Timestamp:
08/16/06 13:14:25 (18 years ago)
Author:
mar637
Message:

use get*nos instead of n* (* can be scan, beam etc.). This showed a bug in c+ which was fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r1111 r1148  
    529529int Scantable::nscan() const {
    530530  Vector<uInt> scannos(scanCol_.getColumn());
    531   uInt nout = GenSort<uInt>::sort( scannos, Sort::Ascending,
     531  uInt nout = genSort( scannos, Sort::Ascending,
    532532                       Sort::QuickSort|Sort::NoDuplicates );
    533533  return int(nout);
     
    547547{
    548548  Vector<uInt> nos(col.getColumn());
    549   GenSort<uInt>::sort( nos, Sort::Ascending,
    550                        Sort::QuickSort|Sort::NoDuplicates );
     549  uInt n = genSort( nos, Sort::Ascending, Sort::QuickSort|Sort::NoDuplicates );
     550  nos.resize(n, True);
    551551  std::vector<uint> stlout;
    552552  nos.tovector(stlout);
Note: See TracChangeset for help on using the changeset viewer.