Skip to content

Commit 7f31033

Browse files
committed
roll sofia base to py2.7
1 parent 4afddd9 commit 7f31033

5 files changed

Lines changed: 11 additions & 5 deletions

File tree

stimela/cargo/base/sofia/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ RUN pip install -U numpy>=1.8 \
1414
astro-tigger-lsm
1515
RUN git clone https://github.com/SoFiA-Admin/SoFiA.git /sofia
1616
RUN cd /sofia && git fetch && git fetch --tags
17-
RUN cd /sofia && git checkout v1.3.0
17+
RUN cd /sofia && git checkout v1.3.2
1818
RUN cd /sofia && python setup.py install
1919
ENV SOFIA_MODULE_PATH /sofia/build/lib.linux-x86_64-2.7
2020
ENV SOFIA_PIPELINE_PATH /sofia/sofia_pipeline.py
2121
ENV PATH $PATH:/sofia:/sofia/gui
2222
RUN echo $PATH
23+
#RUN sed -i 's/from sofia import wavelet_finder/# from sofia import wavelet_finder/g' $SOFIA_PIPELINE_PATH
24+
#RUN cat $SOFIA_PIPELINE_PATH

stimela/cargo/cab/sofia/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM stimela/sofia:1.2.5
1+
FROM stimela/sofia:1.2.5-1
22
MAINTAINER <sphemakh@gmial.com>
33
ADD src /scratch/code
44
ENV LOGFILE ${OUTPUT}/logfile.txt

stimela/cargo/cab/sofia/parameters.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"task": "sofia",
33
"base": "stimela/sofia",
4-
"tag": "1.2.5",
4+
"tag": "1.2.5-1",
55
"version" : "1.3.2",
66
"description": "SoFiA, the Source Finding Application, is a new HI source finding pipeline intended to detect and parameterise galaxies in HI data cubes. While the software is still under development, several stable versions of SoFiA have already been released. This wiki contains user documentation and technical information on SoFiA and its individual modules.",
77
"prefix": "--",

stimela/cargo/cab/sofia/src/run.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import Tigger
44
import numpy
55
import tempfile
6+
import json
7+
import codecs
68

79
from astLib.astWCS import WCS
810
from Tigger.Models import SkyModel, ModelClasses
@@ -17,7 +19,9 @@
1719
MSDIR = os.environ["MSDIR"]
1820
OUTPUT = os.environ["OUTPUT"]
1921

20-
cab = utils.readJson(CONFIG)
22+
with codecs.open(CONFIG, "r", "utf8") as stdr:
23+
cab = json.load(stdr)
24+
2125
args = []
2226
msname = None
2327

stimela/recipe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ def docker_job(self, image, config=None,
639639
build_label, image)]['DIR']
640640
except KeyError:
641641
raise StimelaCabParameterError(
642-
'Cab {} has is uknown to stimela. Was it built?'.format(image))
642+
'Cab {} is uknown to stimela. Was it built?'.format(image))
643643
parameter_file = cabpath+'/parameters.json'
644644

645645
name = '{0}-{1}{2}'.format(self.name, id(image),

0 commit comments

Comments
 (0)