Changeset 1669 for trunk


Ignore:
Timestamp:
12/28/09 18:30:23 (15 years ago)
Author:
Max Voronkov
Message:

made the code more graceful in the case of missing flag table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r1598 r1669  
    668668{
    669669  Vector<uChar> flags;
     670  if (flagsCol_.shape(uInt(whichrow)) == IPosition()) {
     671      // nothing defined, return empty vector
     672      return std::vector<bool>();
     673  }
    670674  flagsCol_.get(uInt(whichrow), flags);
    671675  Vector<Bool> bflag(flags.shape());
Note: See TracChangeset for help on using the changeset viewer.