Changeset 2856 for trunk/src


Ignore:
Timestamp:
09/13/13 21:15:34 (11 years ago)
Author:
Kana Sugimoto
Message:

Took definitely closer look at google code. I found the error comes from a version mismatch of casacore in CASA and googlecode. casacore in CASA has Array::tovector() without any argument, but it's gone in googlecode. I believe I now fixed the code by sticking to Array::tovector(std::vector). It should now compile. Please\!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STSideBandSep.cpp

    r2855 r2856  
    1616#include <casa/OS/File.h>
    1717#include <casa/Logging/LogIO.h>
    18 #include <casa/Arrays/Array.h>
    1918#include <casa/Quanta/QuantumHolder.h>
    2019
     
    298297    flagVec = collapseFlag(flagMat, tabIdvec, true);
    299298    //boolVec = !boolVec; // flag
    300     sigTab_p->flag(irow, flagVec.tovector(), false);
     299    vector<bool> tmpflag;
     300    flagVec.tovector(tmpflag);
     301    sigTab_p->flag(irow, tmpflag, false);
    301302
    302303    // Solve image sideband
     
    313314      flagVec = collapseFlag(flagMat, tabIdvec, false);
    314315      //boolVec = !boolVec; // flag
    315       imgTab_p->flag(irow, flagVec.tovector(), true);
     316      flagVec.tovector(tmpflag);
     317      imgTab_p->flag(irow, tmpflag, true);
    316318    }
    317319  } // end of row loop
Note: See TracChangeset for help on using the changeset viewer.