Skip to content

Commit

Permalink
Divorse gui (#70)
Browse files Browse the repository at this point in the history
Migrates code to meqtrees-frontend repo with the necessary modifications to Timba to optionally import depending on whether the GUI is started. Note that meqbrowser now lives in meqtrees-frontend
  • Loading branch information
bennahugo authored Feb 8, 2022
1 parent 04a1c8b commit b09e969
Show file tree
Hide file tree
Showing 317 changed files with 91 additions and 48,346 deletions.
71 changes: 6 additions & 65 deletions .ci/py3.docker
Original file line number Diff line number Diff line change
Expand Up @@ -2,68 +2,8 @@ FROM kernsuite/base:7

RUN docker-apt-install libblitz0-dev python3-dev libblas-dev liblapack-dev libqdbm-dev wcslib-dev \
libfftw3-dev python3-numpy libcfitsio-dev libboost-all-dev libboost-system-dev cmake g++ wget gfortran \
libncurses5-dev bison libbison-dev flex libreadline6-dev python3-pip rsync

#####################################################################
## Get CASACORE ephem data
#####################################################################
RUN mkdir -p /usr/share/casacore/data/
WORKDIR /usr/share/casacore/data/
RUN rsync -avz rsync://casa-rsync.nrao.edu/casa-data .

#####################################################################
## BUILD CASACORE AND CASAREST FROM SOURCE
## -- Kern version is missing executables from casarest
#####################################################################
WORKDIR /src
RUN wget https://github.com/casacore/casacore/archive/v3.4.0.tar.gz && \
tar xvf v3.4.0.tar.gz && \
rm v3.4.0.tar.gz && \
mkdir casacore-3.4.0/build && \
cd /src/casacore-3.4.0/build && \
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_DEPRECATED=ON -DBUILD_PYTHON=OFF -DBUILD_PYTHON3=ON ../ && \
make -j 4 && \
make install && \
rm -r /src/casacore-3.4.0 && \
cd /src && \
wget https://github.com/casacore/casarest/archive/v1.8.0.tar.gz && \
tar xvf v1.8.0.tar.gz && \
rm v1.8.0.tar.gz && \
cd /src/casarest-1.8.0 && \
mkdir -p build && \
cd /src/casarest-1.8.0/build && \
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ../ && \
make -j 4 && \
make install && \
rm -r /src/casarest-1.8.0 && \
ldconfig && \
cd /src && \
wget https://github.com/casacore/python-casacore/archive/v3.4.0.tar.gz && \
tar xvf v3.4.0.tar.gz && \
rm v3.4.0.tar.gz && \
cd /src/python-casacore-3.4.0 && \
python3.8 -m pip install . && \
cd / && \
python3.8 -c "from pyrap.tables import table as tbl"


#####################################################################
## BUILD MAKEMS FROM SOURCE AND TEST
#####################################################################
WORKDIR /src
RUN wget https://github.com/ska-sa/makems/archive/v1.5.4.tar.gz && \
tar xvf v1.5.4.tar.gz && \
rm v1.5.4.tar.gz && \
mkdir -p /src/makems-1.5.4/LOFAR/build/gnu_opt && \
cd /src/makems-1.5.4/LOFAR/build/gnu_opt && \
cmake -DCMAKE_MODULE_PATH:PATH=/src/makems-1.5.4/LOFAR/CMake \
-DUSE_LOG4CPLUS=OFF -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr ../.. && \
make -j 16 && \
make install && \
cd /src/makems-1.5.4/test && \
makems WSRT_makems.cfg && \
rm -r /src/makems-1.5.4
libncurses5-dev bison libbison-dev flex libreadline6-dev python3-pip rsync \
casacore-dev casacore-tools casarest casacore-data makems python3-casacore

#####################################################################
## BUILD MeqTrees from source
Expand Down Expand Up @@ -97,14 +37,15 @@ RUN pyxis --help

# run test when built
WORKDIR /src
RUN pip3 install nose && \
wget https://github.com/ska-sa/pyxis/archive/v1.7.4.3.tar.gz && \
RUN pip3 install nose
RUN wget https://github.com/ska-sa/pyxis/archive/v1.7.4.3.tar.gz && \
tar -xvf v1.7.4.3.tar.gz && \
rm v1.7.4.3.tar.gz && \
python3.8 -m pip install /src/pyxis-1.7.4.3 && \
cd /src/pyxis-1.7.4.3/Pyxis/recipes/meqtrees-batch-test && \
python3 -m "nose" && \
rm -r /src/pyxis-1.7.4.3

WORKDIR /
ENTRYPOINT ["meqtree-pipeliner.py"]
CMD ["--help"]
CMD ["--help"]
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ build/
.vscode/
*.orig
*.so
.tdl.conf
8 changes: 0 additions & 8 deletions AppAgent/AppAgent/Makefile.am

This file was deleted.

3 changes: 0 additions & 3 deletions AppAgent/AppAgent/bootstrap

This file was deleted.

64 changes: 0 additions & 64 deletions AppAgent/AppAgent/configure.in

This file was deleted.

19 changes: 0 additions & 19 deletions AppAgent/AppAgent/src/Makefile.am

This file was deleted.

7 changes: 0 additions & 7 deletions AppAgent/AppUtils/Makefile.am

This file was deleted.

3 changes: 0 additions & 3 deletions AppAgent/AppUtils/bootstrap

This file was deleted.

64 changes: 0 additions & 64 deletions AppAgent/AppUtils/configure.in

This file was deleted.

25 changes: 0 additions & 25 deletions AppAgent/AppUtils/src/Makefile.am

This file was deleted.

8 changes: 6 additions & 2 deletions AppAgent/AppUtils/src/wsrt_j2convert.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,14 @@
#include <casacore/measures/TableMeasures/TableMeasRefDesc.h>
#include <casacore/casa/Arrays/Vector.h>
#include <casacore/casa/Arrays/ArrayMath.h>
#if CASACORE_MAJOR_VERSION <= 3 && CASACORE_MINOR_VERSION < 4
#if CASACORE_MAJOR_VERSION < 3
#include <casacore/casa/Arrays/ArrayIO.h>
#else
#include <casacore/casa/IO/ArrayIO.h>
#if CASACORE_MINOR_VERSION >= 4
#include <casacore/casa/IO/ArrayIO.h>
#elif
#include <casacore/casa/Arrays/ArrayIO.h>
#endif
#endif
#include <casacore/casa/Arrays/MatrixMath.h>
#include <casacore/casa/System/ProgressMeter.h>
Expand Down
35 changes: 0 additions & 35 deletions AppAgent/AppUtils/test/Makefile.am

This file was deleted.

3 changes: 0 additions & 3 deletions AppAgent/bootstrap

This file was deleted.

2 changes: 0 additions & 2 deletions AppAgent/lofarconf.in

This file was deleted.

7 changes: 1 addition & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,7 @@ if ("${ENABLE_PYTHON_3}")
find_package(PythonInterp ${PYREQ_VER} REQUIRED)
find_package(PythonLibs ${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR} EXACT REQUIRED)
else("${ENABLE_PYTHON_3}")
message("-- Compiling backend against Python 2.7")
message("-- If this is not the intended target specify the ENABLE_PYTHON_3 switch")
set(PYREQ_VER 2.7)
set(PYABI .cpython-27)
find_package(PythonInterp ${PYREQ_VER} EXACT REQUIRED)
find_package(PythonLibs ${PYREQ_VER} EXACT REQUIRED)
message(FATAL_ERROR "Python 2.7 building no longer supported")
endif("${ENABLE_PYTHON_3}")

include (FindPythonInterp)
Expand Down
9 changes: 0 additions & 9 deletions DMI/Makefile.am

This file was deleted.

3 changes: 0 additions & 3 deletions DMI/bootstrap

This file was deleted.

Loading

0 comments on commit b09e969

Please sign in to comment.