- Timestamp:
- 02/13/09 11:27:42 (16 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STFiller.cpp
r1467 r1504 44 44 reader_(0), 45 45 header_(0), 46 table_(0) 46 table_(0), 47 refRx_(".*(e|w|_R)$") 47 48 { 48 49 } … … 51 52 reader_(0), 52 53 header_(0), 53 table_(stbl) 54 table_(stbl), 55 refRx_(".*(e|w|_R)$") 54 56 { 55 57 } … … 58 60 reader_(0), 59 61 header_(0), 60 table_(0) 62 table_(0), 63 refRx_(".*(e|w|_R)$") 61 64 { 62 65 open(filename, whichIF, whichBeam); … … 276 279 *fieldnCol = pksrec.fieldName; 277 280 // try to auto-identify if it is on or off. 278 Regex rx( ".*(e|w|_R)$");281 Regex rx(refRx_); 279 282 Regex rx2("_S$"); 280 283 Int match = pksrec.srcName.matches(rx); -
trunk/src/STFiller.h
r1391 r1504 93 93 casa::CountedPtr<Scantable> getTable() const { return table_;} 94 94 95 void setReferenceExpr(const std::string& rx) { refRx_ = rx; } 96 95 97 private: 96 98 … … 102 104 casa::uInt ifOffset_, beamOffset_; 103 105 casa::Vector<casa::Bool> haveXPol_; 106 casa::String refRx_; 104 107 }; 105 108 -
trunk/src/python_STFiller.cpp
r1077 r1504 27 27 //# AUSTRALIA 28 28 //# 29 //# $Id :$29 //# $Id$ 30 30 //#--------------------------------------------------------------------------- 31 31 #include <boost/python.hpp> … … 47 47 .def("_close", &STFillerWrapper::close) 48 48 .def("_getdata", &STFillerWrapper::getScantable) 49 .def("_setreferenceexpr", &STFillerWrapper::setReferenceExpr) 49 50 ; 50 51 };
Note:
See TracChangeset
for help on using the changeset viewer.