Changeset 1504 for trunk/src


Ignore:
Timestamp:
02/13/09 11:27:42 (15 years ago)
Author:
Malte Marquarding
Message:

Fix for ticket #151: added facilities to help with on/off scan identification/setting

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STFiller.cpp

    r1467 r1504  
    4444  reader_(0),
    4545  header_(0),
    46   table_(0)
     46  table_(0),
     47  refRx_(".*(e|w|_R)$")
    4748{
    4849}
     
    5152  reader_(0),
    5253  header_(0),
    53   table_(stbl)
     54  table_(stbl),
     55  refRx_(".*(e|w|_R)$")
    5456{
    5557}
     
    5860  reader_(0),
    5961  header_(0),
    60   table_(0)
     62  table_(0),
     63  refRx_(".*(e|w|_R)$")
    6164{
    6265  open(filename, whichIF, whichBeam);
     
    276279    *fieldnCol = pksrec.fieldName;
    277280    // try to auto-identify if it is on or off.
    278     Regex rx(".*(e|w|_R)$");
     281    Regex rx(refRx_);
    279282    Regex rx2("_S$");
    280283    Int match = pksrec.srcName.matches(rx);
  • trunk/src/STFiller.h

    r1391 r1504  
    9393  casa::CountedPtr<Scantable> getTable() const { return table_;}
    9494
     95  void setReferenceExpr(const std::string& rx) { refRx_ = rx; }
     96
    9597private:
    9698
     
    102104  casa::uInt ifOffset_, beamOffset_;
    103105  casa::Vector<casa::Bool> haveXPol_;
     106  casa::String refRx_;
    104107};
    105108
  • trunk/src/python_STFiller.cpp

    r1077 r1504  
    2727//#                        AUSTRALIA
    2828//#
    29 //# $Id:$
     29//# $Id$
    3030//#---------------------------------------------------------------------------
    3131#include <boost/python.hpp>
     
    4747        .def("_close", &STFillerWrapper::close)
    4848        .def("_getdata", &STFillerWrapper::getScantable)
     49        .def("_setreferenceexpr", &STFillerWrapper::setReferenceExpr)
    4950      ;
    5051    };
Note: See TracChangeset for help on using the changeset viewer.