Skip to content

Commit

Permalink
Breiz dev (#763)
Browse files Browse the repository at this point in the history
* Update release versions for breizorro and aimfast
  • Loading branch information
Athanaseus authored Sep 21, 2022
1 parent d947b28 commit f738c4a
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 10 deletions.
7 changes: 7 additions & 0 deletions Jenkinsfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@ WORKSPACE_ROOT="$WORKSPACE/$BUILD_NUMBER"
TEST_OUTPUT_DIR="$WORKSPACE_ROOT/test-output"
TEST_DATA_DIR="$WORKSPACE/../../../test-data"
mkdir $TEST_OUTPUT_DIR
function finish {
rm -rf $TMPDIR
}
trap finish EXIT

#Custom home for this run's temporary stuff
mkdir $WORKSPACE_ROOT/tmp
TMPDIR="$WORKSPACE_ROOT/tmp"
export TMPDIR
rm -rf ~/.stimela
HOME=$WORKSPACE_ROOT
export HOME
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import glob

PACKAGE_NAME = "stimela"
__version__ = "1.7.5"
__version__ = "1.7.6"
build_root = os.path.dirname(__file__)


Expand Down
7 changes: 4 additions & 3 deletions stimela/cargo/base/aimfast/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM stimela/meqtrees:1.6.6
FROM quay.io/stimela/base:1.7.1
RUN docker-apt-install python3-pip \
python3-numpy \
python3-matplotlib \
Expand All @@ -10,5 +10,6 @@ RUN docker-apt-install python3-pip \
python3-setuptools \
pybdsf


RUN pip3 install bdsf aimfast
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.8 10
RUN pip3 install -U pip bdsf
RUN pip3 install aimfast
4 changes: 2 additions & 2 deletions stimela/cargo/cab/aimfast/parameters.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"task": "aimfast",
"base": "stimela/aimfast",
"tag": "1.7.0",
"tag": "1.7.5",
"description": "An Astronomical Image Fidelity Assessment Tool",
"prefix": "--",
"binary": "aimfast",
Expand Down Expand Up @@ -201,7 +201,7 @@
},
{
"info": "Centre of online catalog to compare local image/model in 'RA hh:mm:ss, Dec deg:min:sec'",
"default": "0:0:0, -30:0:0",
"default": null,
"required": false,
"name": "centre_coord",
"dtype": "str"
Expand Down
5 changes: 4 additions & 1 deletion stimela/cargo/cab/aimfast/src/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
args += ['{0}{1} {2}'.format(cab['prefix'],
name, " ".join(compare))]
compare = []
elif name in ['compare-online', 'compare-residual-subimages', 'centre-pixels-size']:
elif name in ['compare-online']:
for val in value:
args += ['{0}{1} {2}'.format(cab['prefix'], name, val)]
elif name in ['compare-residual-subimages', 'centre-pixels-size']:
args += ['{0}{1} {2}'.format(cab['prefix'],
name, " ".join(value))]
elif param['dtype'] in ['bool']:
Expand Down
14 changes: 11 additions & 3 deletions stimela/cargo/cab/breizorro/parameters.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"task": "breizorro",
"base": "stimela/breizorro",
"tag": "1.7.1",
"tag": "1.7.4",
"description": "A tool for creating a binary mask given a FITS image",
"prefix": "--",
"binary": "breizorro",
"version":"0.1.0",
"junk":[],
"msdir": false,
"parameters": [
Expand Down Expand Up @@ -44,7 +45,7 @@
"io": "input",
"delimiter": " ",
"name": "merge",
"dtype": "list:file",
"dtype": "list:file"
},
{
"info": "Subtract one or more masks or region files",
Expand All @@ -53,7 +54,7 @@
"io": "input",
"delimiter": " ",
"name": "subtract",
"dtype": "list:file",
"dtype": "list:file"
},
{
"info": "Number the islands detected (default=do not number islands)",
Expand Down Expand Up @@ -112,6 +113,13 @@
"name": "fill-holes",
"dtype": "bool"
},
{
"info": "Sum to peak ratio of flux islands to mask in original image",
"default": null,
"required": false,
"name": "sum-peak",
"dtype": "float"
},
{
"info": "Suffix for mask image (default based on input name)",
"default": null,
Expand Down

0 comments on commit f738c4a

Please sign in to comment.