Changeset 1872


Ignore:
Timestamp:
08/12/10 16:26:14 (14 years ago)
Author:
Malte Marquarding
Message:

Fix broken scantable test because SrcType is used now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/PKSFiller.cpp

    r1832 r1872  
    263263    Int match = pksrec.srcName.matches(rx);
    264264    std::string srcname;
     265    Int srctype = Int(SrcType::NOTYPE);
    265266    if (match) {
    266267      srcname = pksrec.srcName;
     268      srctype =  Int(SrcType::PSOFF);
    267269    } else {
    268270      srcname = pksrec.srcName.before(rx2);
    269     }
    270     Int srctype = match;
    271     if ( pksrec.srcType != -1 ) {
     271      srctype =  Int(SrcType::PSON);
     272    }
     273    if ( pksrec.srcType != Int(SrcType::NOTYPE)) {
    272274      srctype = pksrec.srcType ;
    273275    }
    274276    setTime(pksrec.mjd, pksrec.interval);
     277    cout << srctype << endl;
    275278    setSource(srcname, srctype, pksrec.fieldName,
    276279              pksrec.srcDir, pksrec.srcPM, pksrec.srcVel);
Note: See TracChangeset for help on using the changeset viewer.