Changeset 2587
- Timestamp:
- 07/05/12 18:47:48 (12 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CMakeLists.txt
r2577 r2587 418 418 message( STATUS "BOOST_INCLUDE_DIR = " ${Boost_INCLUDE_DIR} ) 419 419 message( STATUS "BOOST_LIBRARIES = " ${Boost_LIBRARIES} ) 420 421 422 # 423 # Qt4 4.3.4 or later 424 # 425 find_package( Qt4 4.3.4 426 COMPONENTS QtCore QtGui ) 427 if( NOT QT4_FOUND ) 428 message( FATAL_ERROR "Qt4 could not be found. Please check!" ) 429 endif() 430 set( QT4_INCLUDE_DIRS ${QT_INCLUDES} CACHE PATH "QT4 include directories" FORCE ) 431 set( QT4_DEFINITIONS ${QT_DEFINITIONS} -DQT_NO_DEBUG CACHE STRING "QT4 preprocessor flags" FORCE ) 432 set( QT4_LIBRARIES 433 ${QT_QTCORE_LIBRARY} 434 ${QT_QTGUI_LIBRARY} 435 CACHE FILEPATH "QT4 libraries" FORCE ) 436 list( REMOVE_ITEM QT4_LIBRARIES "optimized" ) 437 list( REMOVE_ITEM QT4_LIBRARIES "debug" ) 438 message( STATUS "QT4_INCLUDE_DIRS = " ${QT4_INCLUDE_DIRS} ) 439 message( STATUS "QT4_DEFINITIONS = " ${QT4_DEFINITIONS} ) 440 message( STATUS "QT4_LIBRARIES = " ${QT4_LIBRARIES} ) 420 441 421 442 … … 572 593 include_directories( ${CASACORE_INCLUDE_DIR} 573 594 ${Boost_INCLUDE_DIR} 595 ${QT4_INCLUDE_DIRS} 574 596 ${PYTHON_INCLUDE_DIRS} 575 597 ${WCSLIB_INCLUDE_DIR} -
trunk/python/CMakeLists.txt
r2356 r2587 9 9 # python modules 10 10 set( PYTHON_MODULES 11 ${PYTHONDIR}/__init__.py 11 12 ${PYTHONDIR}/asapfit.py 12 13 ${PYTHONDIR}/asapfitter.py 14 ${PYTHONDIR}/asapgrid.py 13 15 ${PYTHONDIR}/asaplinefind.py 16 ${PYTHONDIR}/asaplot.py 14 17 ${PYTHONDIR}/asaplotbase.py 18 ${PYTHONDIR}/asaplotgui.py 15 19 ${PYTHONDIR}/asaplotgui_gtk.py 16 ${PYTHONDIR}/asaplotgui.py17 20 ${PYTHONDIR}/asaplotgui_qt4.py 18 ${PYTHONDIR}/asaplot.py19 21 ${PYTHONDIR}/asapmath.py 20 22 ${PYTHONDIR}/asapplotter.py … … 22 24 ${PYTHONDIR}/coordinate.py 23 25 ${PYTHONDIR}/customgui_base.py 26 ${PYTHONDIR}/customgui_qt4agg.py 24 27 ${PYTHONDIR}/customgui_tkagg.py 25 ${PYTHONDIR}/customgui_qt4agg.py26 28 ${PYTHONDIR}/env.py 27 29 ${PYTHONDIR}/flagplotter.py 28 ${PYTHONDIR}/__init__.py29 30 ${PYTHONDIR}/interactivemask.py 30 31 ${PYTHONDIR}/ipysupport.py … … 34 35 ${PYTHONDIR}/opacity.py 35 36 ${PYTHONDIR}/parameters.py 37 # ${PYTHONDIR}/plotter2.py 36 38 ${PYTHONDIR}/scantable.py 37 39 ${PYTHONDIR}/selector.py 38 40 ${PYTHONDIR}/simplelinefinder.py 39 ${PYTHONDIR}/utils.py 40 ${PYTHONDIR}/asapgrid.py 41 ${PYTHONDIR}/svninfo.txt ) 41 ${PYTHONDIR}/svninfo.txt 42 ${PYTHONDIR}/utils.py ) 42 43 43 44 install( PROGRAMS ${PYTHON_MODULES} -
trunk/python/__init__.py
r2356 r2587 53 53 from opacity import model as opacity_model 54 54 from asapgrid import asapgrid 55 #from plotter2 import plotter2 55 56 from _asap import srctype 56 57 -
trunk/src/CMakeLists.txt
r2580 r2587 7 7 set( SRCDIR ${ASAPROOT}/src ) 8 8 9 # include QT_USE_FILE 10 include( ${QT_USE_FILE} ) 11 9 12 # include path 10 13 include_directories( ${SRCDIR} 11 14 ${Boost_INCLUDE_DIR} 15 ${QT4_INCLUDE_DIRS} 12 16 ${ASAPROOT}/external-alma 13 17 ${ASAPROOT}/external/libpyrap/pyrap-0.3.2 ) … … 21 25 # source files for libpyrap 22 26 set( ASAP_SRCS 27 # ${SRCDIR}/Plotter2.cpp 23 28 ${SRCDIR}/concurrent.cpp 24 29 ${SRCDIR}/MathUtils.cpp … … 64 69 65 70 set( ASAP_PYSRCS 71 # ${SRCDIR}/python_Plotter2.cpp 66 72 ${SRCDIR}/python_Scantable.cpp 67 73 ${SRCDIR}/python_STFiller.cpp … … 96 102 target_link_libraries( ${ASAPLIB} 97 103 #${Boost_LIBRARIES} 104 ${QT4_LIBRARIES} 98 105 ${PYRAPLIB} 99 106 ${ATNFLIB} -
trunk/src/ScantableWrapper.h
r2435 r2587 13 13 #define ASAPSCANTABLEWRAPPER_H 14 14 15 #include <iostream> 16 #include <string> 15 17 #include <vector> 16 #include <string> 18 17 19 #include <casa/Arrays/Vector.h> 18 20 19 21 #include "MathUtils.h" 22 #include "Scantable.h" 23 #include "STCoordinate.h" 20 24 #include "STFit.h" 21 25 #include "STFitEntry.h" 22 #include "Scantable.h"23 #include "STCoordinate.h"24 26 25 27 namespace asap { … … 58 60 table_(mt.getCP()) {;} 59 61 62 ~ScantableWrapper() 63 { 64 } 65 60 66 void assign(const ScantableWrapper& mt) 61 67 { table_= mt.getCP(); } … … 312 318 } // namespace 313 319 #endif 314 -
trunk/src/python_asap.cpp
r2580 r2587 68 68 69 69 BOOST_PYTHON_MODULE(_asap) { 70 //asap::python::python_Plotter2(); 70 71 asap::python::python_Scantable(); 71 72 asap::python::python_STFiller(); -
trunk/src/python_asap.h
r2580 r2587 35 35 namespace python { 36 36 void translate_ex(const casa::AipsError& e); 37 //void python_Plotter2(); 37 38 void python_Scantable(); 38 39 void python_STFiller();
Note:
See TracChangeset
for help on using the changeset viewer.