- Timestamp:
- 03/03/15 18:26:31 (10 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CMakeLists.txt
r3027 r3029 643 643 # common include path 644 644 # 645 include_directories( ${CASACORE_INCLUDE_DIR} 645 include_directories( ${CASACORE_INCLUDE_DIR}/.. 646 ${CASACORE_INCLUDE_DIR} 646 647 ${Boost_INCLUDE_DIR} 647 648 ${X11_INCLUDE_DIRS} -
trunk/SConstruct
r2998 r3029 163 163 conf.env.AppendUnique(CPPPATH=[pth]) 164 164 break 165 cclibs = ["casa_images", "casa_ms", "casa_components",165 cclibs = ["casa_images", "casa_ms", #"casa_components", 166 166 "casa_coordinates", "casa_lattices", 167 167 "casa_fits", "casa_measures", "casa_scimath", -
trunk/external-alma/atnf/PKSIO/FITSreader.cc
r1757 r3029 38 38 39 39 #include <atnf/PKSIO/FITSreader.h> 40 41 40 #include <algorithm> 41 #include <cstdlib> 42 42 43 43 using namespace std; -
trunk/external-alma/atnf/pks/pks_maths.cc
r2998 r3029 35 35 36 36 // AIPS++ includes. 37 #include <complex> 37 38 #include <casa/aips.h> 38 39 #include <casa/math.h> -
trunk/external-alma/components/SpectralComponents/SpectralElement.cc
r2980 r3029 53 53 _fixed(other._fixed.copy()), 54 54 _function( 55 std::tr1::shared_ptr<Function<Double, Double> >(55 SHARED_PTR<Function<Double, Double> >( 56 56 other._function->clone() 57 57 ) … … 72 72 _fixed.resize(n); 73 73 _fixed = other._fixed.copy(); 74 _function = std::tr1::shared_ptr<Function<Double, Double> >(74 _function = SHARED_PTR<Function<Double, Double> >( 75 75 other._function->clone() 76 76 ); … … 165 165 166 166 void SpectralElement::_setFunction( 167 const std::tr1::shared_ptr<Function<Double, Double> >& f167 const SHARED_PTR<Function<Double, Double> >& f 168 168 ) { 169 169 _function = f; -
trunk/external-alma/components/SpectralComponents/SpectralElement.h
r2980 r3029 30 30 #define COMPONENTS_SPECTRALELEMENT_H 31 31 32 #include <memory> 32 33 #include <casa/aips.h> 33 34 #include <casa/Arrays/Vector.h> 34 35 #include <casa/Containers/RecordInterface.h> 35 ///#include <casa/Utilities/CountedPtr.h>36 #include <tr1/memory>37 36 38 37 namespace casa { //# NAMESPACE CASA - BEGIN … … 174 173 void _setType(const Types type); 175 174 176 void _setFunction(const std::tr1::shared_ptr<Function<Double, Double> >& f);177 178 virtual std::tr1::shared_ptr<Function<Double, Double> > _getFunction() const {175 void _setFunction(const SHARED_PTR<Function<Double, Double> >& f); 176 177 virtual SHARED_PTR<Function<Double, Double> > _getFunction() const { 179 178 return _function; 180 179 } … … 194 193 Vector<Bool> _fixed; 195 194 196 std::tr1::shared_ptr<Function<Double, Double> > _function;195 SHARED_PTR<Function<Double, Double> > _function; 197 196 198 197 }; -
trunk/getsvnrev.sh
r2998 r3029 4 4 # we executed make. 5 5 6 # if we don't see the .svn directory, just return 7 if test ! -d .svn; then6 svn info > /dev/null 2>&1 7 if [ $? -ne 0 ]; then 8 8 exit 0; 9 9 fi -
trunk/src/CMakeLists.txt
r3028 r3029 10 10 include_directories( ${SRCDIR} 11 11 ${Boost_INCLUDE_DIR} 12 ${COMPONENTS_INCLUDE_DIR}13 12 ${ASAPROOT}/external-alma 14 13 ${ASAPROOT}/external/libpyrap/pyrap-0.3.2 ) … … 138 137 ${ATNFLIB} 139 138 #${CASACORE_LIBRARIES} 140 ${WCSLIB} 141 ${COMPONENTS_LIBRARY} ) 139 ${WCSLIB} ) 142 140 target_link_libraries( ${ASAPPYLIB} 143 141 ${ASAPLIB} ) -
trunk/src/PKSFiller.cpp
r2907 r3029 292 292 srctype = Int(SrcType::PSOFF); 293 293 } else { 294 srcname = pksrec.srcName.before(rx2); 294 SubString sub = pksrec.srcName.before(rx2); 295 srcname = string(sub.chars( ),sub.length( )); 295 296 srctype = Int(SrcType::PSON); 296 297 } -
trunk/src/STLineFinder.cpp
r2961 r3029 89 89 const casa::Vector<casa::Bool> &in_mask, 90 90 const std::pair<int,int> &in_edge, 91 int in_max_box_nchan) throw(AipsError);91 int in_max_box_nchan); 92 92 93 93 // access to the statistics 94 const casa::Float& getLinMean() const throw(AipsError);95 const casa::Float& getLinVariance() const throw(AipsError);96 casa::Float aboveMean() const throw(AipsError);97 int getChannel() const throw();94 const casa::Float& getLinMean() const; 95 const casa::Float& getLinVariance() const; 96 casa::Float aboveMean() const; 97 int getChannel() const; 98 98 99 99 // actual number of channels in the box (max_box_nchan, if no channels 100 100 // are masked) 101 int getNumberOfBoxPoints() const throw();101 int getNumberOfBoxPoints() const; 102 102 103 103 // next channel 104 void next() throw(AipsError);104 void next(); 105 105 106 106 // checking whether there are still elements 107 casa::Bool haveMore() const throw();107 casa::Bool haveMore() const; 108 108 109 109 // go to start 110 void rewind() throw(AipsError);110 void rewind(); 111 111 112 112 protected: … … 116 116 // Channels, for which the mask is false or index is beyond the 117 117 // allowed range, are ignored 118 void advanceRunningBox(int ch) throw(casa::AipsError);118 void advanceRunningBox(int ch); 119 119 120 120 // calculate derivative statistics. This function is const, because 121 121 // it updates the cache only 122 void updateDerivativeStatistics() const throw(AipsError);122 void updateDerivativeStatistics() const; 123 123 }; 124 124 … … 166 166 casa::Float in_threshold = 5, 167 167 bool use_median = false, 168 int noise_sample_size = -1) throw();169 virtual ~LFAboveThreshold() throw();168 int noise_sample_size = -1); 169 virtual ~LFAboveThreshold(); 170 170 171 171 // replace the detection criterion 172 void setCriterion(int in_min_nchan, casa::Float in_threshold) throw();172 void setCriterion(int in_min_nchan, casa::Float in_threshold); 173 173 174 174 // return the array with signs of the value-current mean … … 176 176 // This array is updated each time the findLines method is called and 177 177 // is used to search the line wings 178 const casa::Vector<Int>& getSigns() const throw();178 const casa::Vector<Int>& getSigns() const; 179 179 180 180 // find spectral lines and add them into list … … 186 186 const casa::Vector<casa::Bool> &mask, 187 187 const std::pair<int,int> &edge, 188 int max_box_nchan) throw(casa::AipsError);188 int max_box_nchan); 189 189 190 190 protected: … … 193 193 // add a new line to the list, if necessary using processCurLine() 194 194 // detect=true indicates that the current channel satisfies the criterion 195 void processChannel(Bool detect, const casa::Vector<casa::Bool> &mask) 196 throw(casa::AipsError); 195 void processChannel(Bool detect, const casa::Vector<casa::Bool> &mask); 197 196 198 197 // process the interval of channels stored in curline 199 198 // if it satisfies the criterion, add this interval as a new line 200 void processCurLine(const casa::Vector<casa::Bool> &mask) 201 throw(casa::AipsError); 199 void processCurLine(const casa::Vector<casa::Bool> &mask); 202 200 203 201 // get the sign of runningBox->aboveMean(). The RunningBox pointer 204 202 // should be defined 205 casa::Int getAboveMeanSign() const throw();203 casa::Int getAboveMeanSign() const; 206 204 }; 207 205 … … 463 461 const casa::Vector<casa::Bool> &in_mask, 464 462 const std::pair<int,int> &in_edge, 465 int in_max_box_nchan) throw(AipsError):463 int in_max_box_nchan) : 466 464 spectrum(in_spectrum), mask(in_mask), edge(in_edge), 467 465 max_box_nchan(in_max_box_nchan) … … 470 468 } 471 469 472 void RunningBox::rewind() throw(AipsError){470 void RunningBox::rewind() { 473 471 // fill statistics for initial box 474 472 box_chan_cntr=0; // no channels are currently in the box … … 491 489 492 490 // access to the statistics 493 const casa::Float& RunningBox::getLinMean() const throw(AipsError)491 const casa::Float& RunningBox::getLinMean() const 494 492 { 495 493 DebugAssert(cur_channel<edge.second, AipsError); … … 498 496 } 499 497 500 const casa::Float& RunningBox::getLinVariance() const throw(AipsError)498 const casa::Float& RunningBox::getLinVariance() const 501 499 { 502 500 DebugAssert(cur_channel<edge.second, AipsError); … … 505 503 } 506 504 507 casa::Float RunningBox::aboveMean() const throw(AipsError)505 casa::Float RunningBox::aboveMean() const 508 506 { 509 507 DebugAssert(cur_channel<edge.second, AipsError); … … 512 510 } 513 511 514 int RunningBox::getChannel() const throw()512 int RunningBox::getChannel() const 515 513 { 516 514 return cur_channel; … … 519 517 // actual number of channels in the box (max_box_nchan, if no channels 520 518 // are masked) 521 int RunningBox::getNumberOfBoxPoints() const throw()519 int RunningBox::getNumberOfBoxPoints() const 522 520 { 523 521 return box_chan_cntr; … … 529 527 // Channels, for which the mask is false or index is beyond the 530 528 // allowed range, are ignored 531 void RunningBox::advanceRunningBox(int ch) throw(AipsError)529 void RunningBox::advanceRunningBox(int ch) 532 530 { 533 531 if (ch>=edge.first && ch<edge.second) … … 555 553 556 554 // next channel 557 void RunningBox::next() throw(AipsError)555 void RunningBox::next() 558 556 { 559 557 AlwaysAssert(cur_channel<edge.second,AipsError); … … 564 562 565 563 // checking whether there are still elements 566 casa::Bool RunningBox::haveMore() const throw()564 casa::Bool RunningBox::haveMore() const 567 565 { 568 566 return cur_channel<edge.second; … … 571 569 // calculate derivative statistics. This function is const, because 572 570 // it updates the cache only 573 void RunningBox::updateDerivativeStatistics() const throw(AipsError)571 void RunningBox::updateDerivativeStatistics() const 574 572 { 575 573 AlwaysAssert(box_chan_cntr, AipsError); … … 616 614 casa::Float in_threshold, 617 615 bool use_median, 618 int noise_sample_size) throw():616 int noise_sample_size) : 619 617 min_nchan(in_min_nchan), threshold(in_threshold), 620 618 lines(in_lines), running_box(NULL), itsUseMedian(use_median), 621 619 itsNoiseSampleSize(noise_sample_size) {} 622 620 623 LFAboveThreshold::~LFAboveThreshold() throw()621 LFAboveThreshold::~LFAboveThreshold() 624 622 { 625 623 if (running_box!=NULL) delete running_box; … … 628 626 // replace the detection criterion 629 627 void LFAboveThreshold::setCriterion(int in_min_nchan, casa::Float in_threshold) 630 throw()631 628 { 632 629 min_nchan=in_min_nchan; … … 636 633 // get the sign of runningBox->aboveMean(). The RunningBox pointer 637 634 // should be defined 638 casa::Int LFAboveThreshold::getAboveMeanSign() const throw()635 casa::Int LFAboveThreshold::getAboveMeanSign() const 639 636 { 640 637 const Float buf=running_box->aboveMean(); … … 648 645 // add a new line to the list, if necessary 649 646 void LFAboveThreshold::processChannel(Bool detect, 650 const casa::Vector<casa::Bool> &mask) throw(casa::AipsError)647 const casa::Vector<casa::Bool> &mask) 651 648 { 652 649 try { … … 680 677 // if it satisfies the criterion, add this interval as a new line 681 678 void LFAboveThreshold::processCurLine(const casa::Vector<casa::Bool> &mask) 682 throw(casa::AipsError)683 679 { 684 680 try { … … 714 710 // This array is updated each time the findLines method is called and 715 711 // is used to search the line wings 716 const casa::Vector<Int>& LFAboveThreshold::getSigns() const throw()712 const casa::Vector<Int>& LFAboveThreshold::getSigns() const 717 713 { 718 714 return signs; … … 724 720 const std::pair<int,int> &edge, 725 721 int max_box_nchan) 726 throw(casa::AipsError)727 722 { 728 723 const int minboxnchan=4; … … 811 806 // common channel, and false otherwise 812 807 // line2 - range of the second line: start channel and stop+1 813 bool LFLineListOperations::IntersectsWith::operator()(const std::pair<int,int> &line2) 814 const throw() 808 bool LFLineListOperations::IntersectsWith::operator()(const std::pair<int,int> &line2) const 815 809 { 816 810 if (line2.second<line1.first) return false; // line2 is at lower channels … … 835 829 // provided there is no gap between the lines 836 830 void LFLineListOperations::BuildUnion::operator()(const std::pair<int,int> &new_line) 837 throw()838 831 { 839 832 if (new_line.first<temp_line.first) temp_line.first=new_line.first; … … 842 835 843 836 // return the result (temp_line) 844 const std::pair<int,int>& LFLineListOperations::BuildUnion::result() const throw()837 const std::pair<int,int>& LFLineListOperations::BuildUnion::result() const 845 838 { 846 839 return temp_line; … … 864 857 // in the ordered list (so, it is at greater channel numbers) 865 858 bool LFLineListOperations::LaterThan::operator()(const std::pair<int,int> &line2) 866 const throw()859 const 867 860 { 868 861 if (line2.second<line1.first) return false; // line2 is at lower channels … … 884 877 // 885 878 886 STLineFinder::STLineFinder() throw(): edge(0,0), err("spurious")879 STLineFinder::STLineFinder() : edge(0,0), err("spurious") 887 880 { 888 881 useScantable = true; … … 918 911 const casa::Float &in_box_size, 919 912 const casa::Float &in_noise_box, 920 const casa::Bool &in_median) throw()913 const casa::Bool &in_median) 921 914 { 922 915 threshold=in_threshold; … … 928 921 } 929 922 930 STLineFinder::~STLineFinder() throw(AipsError){}923 STLineFinder::~STLineFinder() {} 931 924 932 925 // set scan to work with (in_scan parameter) 933 void STLineFinder::setScan(const ScantableWrapper &in_scan) throw(AipsError)926 void STLineFinder::setScan(const ScantableWrapper &in_scan) 934 927 { 935 928 scan=in_scan.getCP(); … … 957 950 int STLineFinder::findLines(const std::vector<bool> &in_mask, 958 951 const std::vector<int> &in_edge, 959 const casa::uInt &whichRow) throw(casa::AipsError)952 const casa::uInt &whichRow) 960 953 { 961 954 if (useScantable && scan.null()) … … 1105 1098 // reducing the spectral resolution if the baseline shape is bad 1106 1099 void STLineFinder::subtractBaseline(const casa::Vector<casa::Bool> &temp_mask, 1107 const casa::Int &order) throw(casa::AipsError)1100 const casa::Int &order) 1108 1101 { 1109 1102 AlwaysAssert(spectrum.nelements(),AipsError); … … 1131 1124 void STLineFinder::averageAdjacentChannels(casa::Vector<casa::Bool> &mask2update, 1132 1125 const casa::Int &boxsize) 1133 throw(casa::AipsError)1134 1126 { 1135 1127 DebugAssert(mask2update.nelements()==spectrum.nelements(), AipsError); … … 1163 1155 // in setScan) are still excluded regardless on the invert option 1164 1156 std::vector<bool> STLineFinder::getMask(bool invert) 1165 const throw(casa::AipsError)1157 const 1166 1158 { 1167 1159 try { … … 1205 1197 // get range for all lines found. The same units as used in the scan 1206 1198 // will be returned (e.g. velocity instead of channels). 1207 std::vector<double> STLineFinder::getLineRanges() 1208 const throw(casa::AipsError) 1199 std::vector<double> STLineFinder::getLineRanges() const 1209 1200 { 1210 1201 std::vector<double> vel; … … 1230 1221 // The same as getLineRanges, but channels are always used to specify 1231 1222 // the range 1232 std::vector<int> STLineFinder::getLineRangesInChannels() 1233 const throw(casa::AipsError) 1223 std::vector<int> STLineFinder::getLineRangesInChannels() const 1234 1224 { 1235 1225 try { … … 1280 1270 std::list<std::pair<int, int> > &lines2update, 1281 1271 int max_box_nchan) 1282 throw (casa::AipsError)1283 1272 { 1284 1273 try { … … 1339 1328 void LFLineListOperations::addNewSearchResult(const std::list<pair<int, int> > &newlines, 1340 1329 std::list<std::pair<int, int> > &lines_list) 1341 throw(AipsError)1342 1330 { 1343 1331 try { … … 1386 1374 const casa::Vector<casa::Int> &signs, 1387 1375 const casa::Vector<casa::Bool> &mask, 1388 const std::pair<int,int> &edge) throw(casa::AipsError)1376 const std::pair<int,int> &edge) 1389 1377 { 1390 1378 try { -
trunk/src/STLineFinder.h
r2943 r3029 62 62 // the new line 63 63 static void addNewSearchResult(const std::list<std::pair<int, int> > 64 &newlines, std::list<std::pair<int, int> > &lines_list) 65 throw(casa::AipsError); 64 &newlines, std::list<std::pair<int, int> > &lines_list); 66 65 67 66 // extend all line ranges to the point where a value stored in the … … 73 72 const casa::Vector<casa::Int> &signs, 74 73 const casa::Vector<casa::Bool> &mask, 75 const std::pair<int,int> &edge) 76 throw(casa::AipsError); 74 const std::pair<int,int> &edge); 77 75 protected: 78 76 … … 86 84 // return true if line2 intersects with line1 with at least one 87 85 // common channel, and false otherwise 88 bool operator()(const std::pair<int,int> &line2) const throw();86 bool operator()(const std::pair<int,int> &line2) const; 89 87 }; 90 88 … … 98 96 // update temp_line with a union of temp_line and new_line 99 97 // provided there is no gap between the lines 100 void operator()(const std::pair<int,int> &new_line) throw();98 void operator()(const std::pair<int,int> &new_line); 101 99 // return the result (temp_line) 102 const std::pair<int,int>& result() const throw();100 const std::pair<int,int>& result() const; 103 101 }; 104 102 … … 113 111 // return true if line2 should be placed later than line1 114 112 // in the ordered list (so, it is at greater channel numbers) 115 bool operator()(const std::pair<int,int> &line2) const throw();113 bool operator()(const std::pair<int,int> &line2) const; 116 114 }; 117 115 … … 129 127 130 128 struct STLineFinder : protected LFLineListOperations { 131 STLineFinder() throw();132 virtual ~STLineFinder() throw(casa::AipsError);129 STLineFinder(); 130 virtual ~STLineFinder(); 133 131 134 132 // set the parameters controlling algorithm … … 160 158 const casa::Float &in_box_size=0.2, 161 159 const casa::Float &in_noise_box=-1., 162 const casa::Bool &in_median = casa::False) throw();160 const casa::Bool &in_median = casa::False); 163 161 164 162 void setDetailedOptions( const casa::Int &order=9 ) ; 165 163 166 164 // set the scan to work with (in_scan parameter) 167 void setScan(const ScantableWrapper &in_scan) throw(casa::AipsError);165 void setScan(const ScantableWrapper &in_scan); 168 166 169 167 // set spectrum data to work with. this is a method to allow linefinder work … … 182 180 int findLines(const std::vector<bool> &in_mask, 183 181 const std::vector<int> &in_edge = std::vector<int>(), 184 const casa::uInt &whichRow = 0) throw(casa::AipsError);182 const casa::uInt &whichRow = 0); 185 183 186 184 // get the mask to mask out all lines that have been found (default) … … 189 187 // in setScan) or dropped out by the edge parameter (in_edge 190 188 // in setScan) are still excluded regardless on the invert option 191 std::vector<bool> getMask(bool invert=false) const throw(casa::AipsError);189 std::vector<bool> getMask(bool invert=false) const; 192 190 193 191 // get range for all lines found. The same units as used in the scan 194 192 // will be returned (e.g. velocity instead of channels). 195 std::vector<double> getLineRanges() const throw(casa::AipsError);193 std::vector<double> getLineRanges() const; 196 194 // The same as getLineRanges, but channels are always used to specify 197 195 // the range 198 std::vector<int> getLineRangesInChannels() const throw(casa::AipsError);196 std::vector<int> getLineRangesInChannels() const; 199 197 protected: 200 198 // auxiliary function to average adjacent channels and update the mask … … 205 203 // boxsize - a number of adjacent channels to average 206 204 void averageAdjacentChannels(casa::Vector<casa::Bool> &mask2update, 207 const casa::Int &boxsize) 208 throw(casa::AipsError); 205 const casa::Int &boxsize); 209 206 210 207 // auxiliary function to fit and subtract a polynomial from the current … … 212 209 // reducing the spectral resolution if the baseline shape is bad 213 210 void subtractBaseline(const casa::Vector<casa::Bool> &temp_mask, 214 const casa::Int &order) throw(casa::AipsError);211 const casa::Int &order); 215 212 216 213 // an auxiliary function to remove all lines from the list, except the … … 229 226 void keepStrongestOnly(const casa::Vector<casa::Bool> &temp_mask, 230 227 std::list<std::pair<int, int> > &lines2update, 231 int max_box_nchan) 232 throw (casa::AipsError); 228 int max_box_nchan); 233 229 private: 234 230 casa::CountedPtr<Scantable> scan; // the scan to work with -
trunk/src/python_asap.cpp
r2921 r3029 126 126 casa::pyrap::register_convert_std_vector<double>(); 127 127 casa::pyrap::register_convert_std_vector<std::string>(); 128 //////////////see error below////////////////////////////// 128 129 casa::pyrap::register_convert_std_vector<bool>(); 130 /////////////////////////////////////////////////////////// 129 131 casa::pyrap::register_convert_casa_valueholder(); 130 132 casa::pyrap::register_convert_casa_record(); … … 132 134 #endif 133 135 } 136 //[ 79%] Building CXX object src/CMakeFiles/_asap.dir/python_asap.cpp.o 137 //cd ...trunk/asap/build/src && /usr/bin/clang++ -DAIPS_AUTO_STL -DAIPS_DEBUG -DAIPS_STDLIB -DCASACORE_NEEDS_RETHROW -DCASA_USECASAPATH -DENABLE_PLOTTER2 -DHAVE_LIBPYRAP -DNOPKSMS -DUSE_CASAPY -DWITHOUT_ACS -D_GNU_SOURCE -D_asap_EXPORTS -pipe -Wall -Wextra -Wno-non-template-friend -Wcast-align -Wno-comment -ggdb3 -O0 -fno-omit-frame-pointer -fPIC -I...trunk/darwin/include/casacore -I...trunk/darwin/include/casacore/.. -I/opt/casa/01/include -I/opt/casa/01/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/opt/casa/01/Library/Frameworks/Python.framework/Versions/2.7/include -I/opt/casa/01/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I...trunk/asap/src -I...trunk/asap/external-alma -I...trunk/asap/external/libpyrap/pyrap-0.3.2 -o CMakeFiles/_asap.dir/python_asap.cpp.o -c ...trunk/asap/src/python_asap.cpp 138 //warning: unknown warning option '-Wno-non-template-friend'; did you mean '-Wno-unsupported-friend'? [-Wunknown-warning-option] 139 //In file included from ...trunk/asap/src/python_asap.cpp:32: 140 //In file included from /opt/casa/01/include/boost/python.hpp:29: 141 //In file included from /opt/casa/01/include/boost/python/exec.hpp:9: 142 ///opt/casa/01/include/boost/python/str.hpp:185:57: warning: unused parameter 'end' [-Wunused-parameter] 143 // long count(T1 const& sub,T2 const& start, T3 const& end) const 144 // ^ 145 //In file included from ...trunk/asap/src/python_asap.cpp:32: 146 //In file included from /opt/casa/01/include/boost/python.hpp:49: 147 ///opt/casa/01/include/boost/python/opaque_pointer_converter.hpp:172:1: warning: missing field 'tp_version_tag' initializer [-Wmissing-field-initializers] 148 //}; 149 //^ 150 //In file included from ...trunk/asap/src/python_asap.cpp:32: 151 //In file included from /opt/casa/01/include/boost/python.hpp:52: 152 //In file included from /opt/casa/01/include/boost/python/overloads.hpp:11: 153 ///opt/casa/01/include/boost/python/detail/defaults_def.hpp:92:30: warning: unused parameter 'kw' [-Wunused-parameter] 154 // , keyword_range const& kw // ignored 155 // ^ 156 //In file included from ...trunk/asap/src/python_asap.cpp:46: 157 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:95:9: warning: cast from 158 // 'boost::python::converter::rvalue_from_python_stage1_data *' to 'boost::python::converter::rvalue_from_python_storage<String> *' increases required alignment 159 // from 8 to 16 [-Wcast-align] 160 // (boost::python::converter::rvalue_from_python_storage<String>*) 161 // ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 162 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:424:9: warning: cast from 163 // 'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<asap::ScantableWrapper, 164 // std::__1::allocator<asap::ScantableWrapper> > > *' increases required alignment from 8 to 16 [-Wcast-align] 165 // (rvalue_from_python_storage<ContainerType>*) 166 // ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 167 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:367:10: note: in instantiation of member function 168 // 'casa::pyrap::from_python_sequence<std::__1::vector<asap::ScantableWrapper, std::__1::allocator<asap::ScantableWrapper> >, 169 // casa::pyrap::stl_variable_capacity_policy>::construct' requested here 170 // &construct, 171 // ^ 172 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:543:2: note: in instantiation of member function 173 // 'casa::pyrap::from_python_sequence<std::__1::vector<asap::ScantableWrapper, std::__1::allocator<asap::ScantableWrapper> >, 174 // casa::pyrap::stl_variable_capacity_policy>::from_python_sequence' requested here 175 // from_python_sequence < std::vector < T >, 176 // ^ 177 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:550:30: note: in instantiation of member function 178 // 'casa::pyrap::convert_std_vector<asap::ScantableWrapper>::reg' requested here 179 // { convert_std_vector<T>::reg(); } 180 // ^ 181 //...trunk/asap/src/python_asap.cpp:122:16: note: in instantiation of function template specialization 182 // 'casa::pyrap::register_convert_std_vector<asap::ScantableWrapper>' requested here 183 // casa::pyrap::register_convert_std_vector<asap::ScantableWrapper>(); 184 // ^ 185 //In file included from ...trunk/asap/src/python_asap.cpp:46: 186 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:424:9: warning: cast from 187 // 'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<int, std::__1::allocator<int> > > *' increases 188 // required alignment from 8 to 16 [-Wcast-align] 189 // (rvalue_from_python_storage<ContainerType>*) 190 // ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 191 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:367:10: note: in instantiation of member function 192 // 'casa::pyrap::from_python_sequence<std::__1::vector<int, std::__1::allocator<int> >, casa::pyrap::stl_variable_capacity_policy>::construct' requested here 193 // &construct, 194 // ^ 195 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:543:2: note: in instantiation of member function 196 // 'casa::pyrap::from_python_sequence<std::__1::vector<int, std::__1::allocator<int> >, casa::pyrap::stl_variable_capacity_policy>::from_python_sequence' 197 // requested here 198 // from_python_sequence < std::vector < T >, 199 // ^ 200 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:550:30: note: in instantiation of member function 201 // 'casa::pyrap::convert_std_vector<int>::reg' requested here 202 // { convert_std_vector<T>::reg(); } 203 // ^ 204 //...trunk/asap/src/python_asap.cpp:123:16: note: in instantiation of function template specialization 205 // 'casa::pyrap::register_convert_std_vector<int>' requested here 206 // casa::pyrap::register_convert_std_vector<int>(); 207 // ^ 208 //In file included from ...trunk/asap/src/python_asap.cpp:46: 209 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:424:9: warning: cast from 210 // 'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<unsigned int, std::__1::allocator<unsigned int> > 211 // > *' increases required alignment from 8 to 16 [-Wcast-align] 212 // (rvalue_from_python_storage<ContainerType>*) 213 // ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 214 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:367:10: note: in instantiation of member function 215 // 'casa::pyrap::from_python_sequence<std::__1::vector<unsigned int, std::__1::allocator<unsigned int> >, casa::pyrap::stl_variable_capacity_policy>::construct' 216 // requested here 217 // &construct, 218 // ^ 219 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:543:2: note: in instantiation of member function 220 // 'casa::pyrap::from_python_sequence<std::__1::vector<unsigned int, std::__1::allocator<unsigned int> >, 221 // casa::pyrap::stl_variable_capacity_policy>::from_python_sequence' requested here 222 // from_python_sequence < std::vector < T >, 223 // ^ 224 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:550:30: note: in instantiation of member function 225 // 'casa::pyrap::convert_std_vector<unsigned int>::reg' requested here 226 // { convert_std_vector<T>::reg(); } 227 // ^ 228 //...trunk/asap/src/python_asap.cpp:124:16: note: in instantiation of function template specialization 229 // 'casa::pyrap::register_convert_std_vector<unsigned int>' requested here 230 // casa::pyrap::register_convert_std_vector<uint>(); 231 // ^ 232 //In file included from ...trunk/asap/src/python_asap.cpp:46: 233 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:424:9: warning: cast from 234 // 'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<float, std::__1::allocator<float> > > *' 235 // increases required alignment from 8 to 16 [-Wcast-align] 236 // (rvalue_from_python_storage<ContainerType>*) 237 // ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 238 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:367:10: note: in instantiation of member function 239 // 'casa::pyrap::from_python_sequence<std::__1::vector<float, std::__1::allocator<float> >, casa::pyrap::stl_variable_capacity_policy>::construct' requested here 240 // &construct, 241 // ^ 242 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:543:2: note: in instantiation of member function 243 // 'casa::pyrap::from_python_sequence<std::__1::vector<float, std::__1::allocator<float> >, casa::pyrap::stl_variable_capacity_policy>::from_python_sequence' 244 // requested here 245 // from_python_sequence < std::vector < T >, 246 // ^ 247 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:550:30: note: in instantiation of member function 248 // 'casa::pyrap::convert_std_vector<float>::reg' requested here 249 // { convert_std_vector<T>::reg(); } 250 // ^ 251 //...trunk/asap/src/python_asap.cpp:125:16: note: in instantiation of function template specialization 252 // 'casa::pyrap::register_convert_std_vector<float>' requested here 253 // casa::pyrap::register_convert_std_vector<float>(); 254 // ^ 255 //In file included from ...trunk/asap/src/python_asap.cpp:46: 256 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:424:9: warning: cast from 257 // 'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<double, std::__1::allocator<double> > > *' 258 // increases required alignment from 8 to 16 [-Wcast-align] 259 // (rvalue_from_python_storage<ContainerType>*) 260 // ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 261 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:367:10: note: in instantiation of member function 262 // 'casa::pyrap::from_python_sequence<std::__1::vector<double, std::__1::allocator<double> >, casa::pyrap::stl_variable_capacity_policy>::construct' requested 263 // here 264 // &construct, 265 // ^ 266 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:543:2: note: in instantiation of member function 267 // 'casa::pyrap::from_python_sequence<std::__1::vector<double, std::__1::allocator<double> >, casa::pyrap::stl_variable_capacity_policy>::from_python_sequence' 268 // requested here 269 // from_python_sequence < std::vector < T >, 270 // ^ 271 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:550:30: note: in instantiation of member function 272 // 'casa::pyrap::convert_std_vector<double>::reg' requested here 273 // { convert_std_vector<T>::reg(); } 274 // ^ 275 //...trunk/asap/src/python_asap.cpp:126:16: note: in instantiation of function template specialization 276 // 'casa::pyrap::register_convert_std_vector<double>' requested here 277 // casa::pyrap::register_convert_std_vector<double>(); 278 // ^ 279 //In file included from ...trunk/asap/src/python_asap.cpp:46: 280 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:424:9: warning: cast from 281 // 'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<std::__1::basic_string<char>, 282 // std::__1::allocator<std::__1::basic_string<char> > > > *' increases required alignment from 8 to 16 [-Wcast-align] 283 // (rvalue_from_python_storage<ContainerType>*) 284 // ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 285 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:367:10: note: in instantiation of member function 286 // 'casa::pyrap::from_python_sequence<std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >, 287 // casa::pyrap::stl_variable_capacity_policy>::construct' requested here 288 // &construct, 289 // ^ 290 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:543:2: note: in instantiation of member function 291 // 'casa::pyrap::from_python_sequence<std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >, 292 // casa::pyrap::stl_variable_capacity_policy>::from_python_sequence' requested here 293 // from_python_sequence < std::vector < T >, 294 // ^ 295 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:550:30: note: in instantiation of member function 296 // 'casa::pyrap::convert_std_vector<std::__1::basic_string<char> >::reg' requested here 297 // { convert_std_vector<T>::reg(); } 298 // ^ 299 //...trunk/asap/src/python_asap.cpp:127:16: note: in instantiation of function template specialization 300 // 'casa::pyrap::register_convert_std_vector<std::__1::basic_string<char> >' requested here 301 // casa::pyrap::register_convert_std_vector<std::string>(); 302 // ^ 303 //In file included from ...trunk/asap/src/python_asap.cpp:32: 304 //In file included from /opt/casa/01/include/boost/python.hpp:11: 305 //In file included from /opt/casa/01/include/boost/python/args.hpp:25: 306 //In file included from /opt/casa/01/include/boost/python/object_core.hpp:14: 307 //In file included from /opt/casa/01/include/boost/python/call.hpp:15: 308 ///opt/casa/01/include/boost/python/converter/arg_to_python.hpp:209:9: error: no matching constructor for initialization of 309 // 'boost::python::converter::detail::arg_to_python_base' 310 // : arg_to_python_base(&x, registered<T>::converters) 311 // ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 312 ///opt/casa/01/include/boost/python/converter/arg_to_python.hpp:256:7: note: in instantiation of member function 313 // 'boost::python::converter::detail::value_arg_to_python<std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > > 314 // >::value_arg_to_python' requested here 315 // : base(x) 316 // ^ 317 ///opt/casa/01/include/boost/python/object_core.hpp:393:33: note: in instantiation of member function 318 // 'boost::python::converter::arg_to_python<std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > > >::arg_to_python' requested here 319 // return python::incref(converter::arg_to_python<T>(x).get()); 320 // ^ 321 ///opt/casa/01/include/boost/python/object_core.hpp:312:10: note: in instantiation of function template specialization 322 // 'boost::python::api::object_initializer_impl<false, false>::get<std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > > >' 323 // requested here 324 // >::get( 325 // ^ 326 ///opt/casa/01/include/boost/python/object_core.hpp:334:23: note: in instantiation of function template specialization 327 // 'boost::python::api::object_base_initializer<std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > > >' requested here 328 // : object_base(object_base_initializer(x)) 329 // ^ 330 ///opt/casa/01/include/boost/python/list.hpp:72:22: note: in instantiation of function template specialization 331 // 'boost::python::api::object::object<std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > > >' requested here 332 // base::append(object(x)); 333 // ^ 334 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:219:9: note: (skipping 3 contexts in backtrace; use 335 // -ftemplate-backtrace-limit=0 to see all) 336 // result.append(*i); 337 // ^ 338 ///opt/casa/01/include/boost/python/to_python_converter.hpp:88:22: note: in instantiation of member function 339 // 'boost::python::converter::as_to_python_function<std::__1::vector<bool, std::__1::allocator<bool> >, casa::pyrap::to_list<std::__1::vector<bool, 340 // std::__1::allocator<bool> > > >::convert' requested here 341 // &normalized::convert 342 // ^ 343 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:317:7: note: in instantiation of member function 344 // 'boost::python::to_python_converter<std::__1::vector<bool, std::__1::allocator<bool> >, casa::pyrap::to_list<std::__1::vector<bool, std::__1::allocator<bool> 345 // > >, false>::to_python_converter' requested here 346 // boost::python::to_python_converter < std::vector < T >, 347 // ^ 348 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:542:2: note: in instantiation of member function 349 // 'casa::pyrap::std_vector_to_list<bool>::std_vector_to_list' requested here 350 // std_vector_to_list < T > (); 351 // ^ 352 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:550:30: note: in instantiation of member function 353 // 'casa::pyrap::convert_std_vector<bool>::reg' requested here 354 // { convert_std_vector<T>::reg(); } 355 // ^ 356 //...trunk/asap/src/python_asap.cpp:128:16: note: in instantiation of function template specialization 357 // 'casa::pyrap::register_convert_std_vector<bool>' requested here 358 // casa::pyrap::register_convert_std_vector<bool>(); 359 // ^ 360 ///opt/casa/01/include/boost/python/converter/arg_to_python_base.hpp:20:7: note: candidate constructor not viable: no known conversion from 361 // '__bit_iterator<std::__1::vector<bool, std::__1::allocator<bool> >, true>' to 'const volatile void *' for 1st argument 362 // arg_to_python_base(void const volatile* source, registration const&); 363 // ^ 364 ///opt/casa/01/include/boost/python/converter/arg_to_python_base.hpp:15:28: note: candidate constructor (the implicit copy constructor) not viable: requires 1 365 // argument, but 2 were provided 366 // struct BOOST_PYTHON_DECL arg_to_python_base 367 // ^ 368 //In file included from ...trunk/asap/src/python_asap.cpp:46: 369 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:424:9: warning: cast from 370 // 'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<bool, std::__1::allocator<bool> > > *' increases 371 // required alignment from 8 to 16 [-Wcast-align] 372 // (rvalue_from_python_storage<ContainerType>*) 373 // ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 374 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:367:10: note: in instantiation of member function 375 // 'casa::pyrap::from_python_sequence<std::__1::vector<bool, std::__1::allocator<bool> >, casa::pyrap::stl_variable_capacity_policy>::construct' requested here 376 // &construct, 377 // ^ 378 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:543:2: note: in instantiation of member function 379 // 'casa::pyrap::from_python_sequence<std::__1::vector<bool, std::__1::allocator<bool> >, casa::pyrap::stl_variable_capacity_policy>::from_python_sequence' 380 // requested here 381 // from_python_sequence < std::vector < T >, 382 // ^ 383 //...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:550:30: note: in instantiation of member function 384 // 'casa::pyrap::convert_std_vector<bool>::reg' requested here 385 // { convert_std_vector<T>::reg(); } 386 // ^ 387 //...trunk/asap/src/python_asap.cpp:128:16: note: in instantiation of function template specialization 388 // 'casa::pyrap::register_convert_std_vector<bool>' requested here 389 // casa::pyrap::register_convert_std_vector<bool>(); 390 // ^ 391 //12 warnings and 1 error generated. 392 //make[2]: *** [src/CMakeFiles/_asap.dir/python_asap.cpp.o] Error 1 393 //make[1]: *** [src/CMakeFiles/_asap.dir/all] Error 2 394 //make: *** [all] Error 2 395 // 396 //
Note:
See TracChangeset
for help on using the changeset viewer.