Skip to content

Commit a30e1f1

Browse files
authored
Merge pull request #626 from ratt-ru/caracal-840
Caracal 840
2 parents b58e7b7 + 24382fb commit a30e1f1

51 files changed

Lines changed: 5998 additions & 5643 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Jenkinsfile.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ cp -r $TEST_DATA_DIR/beams $TEST_OUTPUT_DIR/input/beams
2828
docker -v
2929
podman -v
3030
singularity -v
31-
export SINGULARITY_PULLFOLDER=${WORKSPACE_ROOT}/singularity_images
32-
mkdir $SINGULARITY_PULLFOLDER
31+
export STIMELA_PULLFOLDER=${WORKSPACE_ROOT}/singularity_images
32+
mkdir $STIMELA_PULLFOLDER
3333

3434
#########################################################################
3535
# PYTHON 3 TEST

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313

1414
PACKAGE_NAME = "stimela"
15-
__version__ = "1.5.4"
15+
__version__ = "1.6.0"
1616

1717
setup(name=PACKAGE_NAME,
1818
version=__version__,

stimela/cargo/base/base/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM kernsuite/base:dev
1+
FROM kernsuite/base:5
22
RUN docker-apt-install \
33
python3-setuptools \
44
libboost-python-dev \
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM stimela/base:1.2.5
1+
FROM stimela/base:1.6.0
22
MAINTAINER <sphemakh@gmail.com>
33
RUN docker-apt-install libboost-dev \
44
casacore-dev \
5-
python3-casacore python3-pip
6-
RUN pip3 install -U pip setuptools pyyaml
7-
RUN pip3 install katdal[ms,s3]
8-
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.6 10
5+
gfortran
6+
RUN pip install -U six numpy
7+
RUN pip install katdal[ms,s3]
8+
RUN export NUMBA_CACHE_DIR=/dat
99
RUN mvftoms.py -h
1010
RUN python --version
1111

stimela/cargo/base/wsclean/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM stimela/base:1.2.0
1+
FROM stimela/base:1.6.0
22
MAINTAINER <sphemakh@gmail.com>
33
RUN docker-apt-install cmake \
44
wget \
@@ -25,12 +25,12 @@ RUN docker-apt-install cmake \
2525
liblog4cplus-dev \
2626
libhdf5-dev \
2727
casacore-dev
28-
RUN wget https://tenet.dl.sourceforge.net/project/wsclean/wsclean-2.8/wsclean-2.8.tar.bz2
29-
RUN tar xvf wsclean-2.8.tar.bz2
30-
RUN mkdir wsclean-2.8/build
31-
RUN cd wsclean-2.8/build && \
28+
RUN wget https://tenet.dl.sourceforge.net/project/wsclean/wsclean-2.9/wsclean-2.9.tar.bz2
29+
RUN tar xvf wsclean-2.9.tar.bz2
30+
RUN mkdir wsclean-2.9/build
31+
RUN cd wsclean-2.9/build && \
3232
cmake .. -DPORTABLE=Yes -DCMAKE_BUILD_TYPE=Release && \
3333
make -j 10 && \
3434
make install
35-
RUN pip install astropy
3635
RUN ulimit -p 9000
36+
RUN wsclean

stimela/cargo/cab/__init__.py

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,24 +131,32 @@ def __init__(self,
131131
base=None,
132132
binary=None,
133133
description=None,
134-
tag=None,
134+
tag=[],
135135
prefix=None,
136136
parameters=[],
137-
version=None,
137+
version=[],
138138
junk=[]):
139139

140140
self.indir = indir
141141
self.outdir = outdir
142142

143+
143144
if parameter_file:
144145
cab = utils.readJson(parameter_file)
146+
if not isinstance(cab["tag"], list):
147+
tag = [cab["tag"]]
148+
version = [cab.get("version", "x.x.x")]
149+
else:
150+
tag = cab["tag"]
151+
version = cab["version"]
152+
145153
self.task = cab["task"]
146154
self.base = cab["base"]
147155
self.binary = cab["binary"]
148-
self.tag = cab["tag"]
156+
self.tag = tag
149157
self.junk = cab.get("junk", [])
150158
self.wranglers = cab.get("wranglers", [])
151-
self.version = cab.get("version", "x.x.x")
159+
self.version = version
152160
if cab["msdir"]:
153161
self.msdir = msdir
154162
else:
@@ -274,13 +282,14 @@ def toDict(self):
274282
})
275283
return conf
276284

277-
def update(self, options, saveconf):
285+
def update(self, options, saveconf, tag=None):
278286
required = filter(lambda a: a.required, self.parameters)
287+
tag = tag or self.tag
279288
for param0 in required:
280289
if param0.name not in options.keys() and param0.mapping not in options.keys():
281290
raise StimelaCabParameterError(
282291
"Parameter {} is required but has not been specified".format(param0.name))
283-
self.log.info(f"Validating parameters for cab {self.task} ({self.base}:{self.tag})")
292+
self.log.info(f"Validating parameters for cab {self.task} ({self.base}:{tag})")
284293

285294
for name, value in options.items():
286295
found = False

0 commit comments

Comments
 (0)