Skip to content

Commit 3e98eef

Browse files
authored
Merge pull request #12 from ADACS-Australia/pawsey_testing
Pawsey testing
2 parents 870f24f + 7ecbf52 commit 3e98eef

14 files changed

+434
-192
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ profiling.md
2626
/docs/build
2727
/docs/doctrees
2828
example_data/
29+
build/
30+
scripts/epochs.txt
31+
scripts/mean.txt

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,13 @@ This will run the viewer using the images within the default ``results`` directo
110110
./run_robbie_viewer.sh -p path_to_dir
111111
```
112112

113+
When plotting large images, it is recommended to also specify an RA and DEC position, as well as a size in coordinate units, to cutout a portion of the image for plotting.
114+
For example, if we want to plot an image with centre position of RA 335°, DEC -15° and size of 5°:
115+
116+
```
117+
./run_robbie_viewer.sh path_to_dir 335 -15 5
118+
```
119+
113120
## Credit
114121
If you use Robbie as part of your work, please cite [Hancock et al. 2018](http://adsabs.harvard.edu/abs/2019A%26C....27...23H), and link to this repository.
115122

docker/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ RUN pip install -r requirements.txt && \
2020
python setup.py install && \
2121
rm -rf /tmp/build
2222

23+
# set env
2324
ENV HOME=/tmp

docker/build_docker_arm.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ cd ..
33
version=$(robbie_version.sh)
44

55
# build the container and update tag
6-
docker buildx build . --platform linux/amd64 -f docker/Dockerfile -t "paulhancock/robbie-next:${version}" && \
6+
docker buildx build . --platform linux/amd64 --no-cache -f docker/Dockerfile -t "paulhancock/robbie-next:${version}" && \
77
docker tag paulhancock/robbie-next:${version} paulhancock/robbie-next:latest
88
cd -

nextflow.config

+5-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ timeline.enabled = true
4242
report.enabled = true
4343
dag.enabled = true
4444

45+
// get hostname
46+
host = "$HOSTNAME".split('-')[0]
4547

4648
profiles {
4749
local {
@@ -102,12 +104,14 @@ profiles {
102104
}
103105
}
104106
}
105-
if ( "\$HOSTNAME".startsWith("garrawarla") ) {
107+
108+
if ( host == "garrawarla") ) {
106109
// Set up container
107110
process.module = 'singularity/3.7.4'
108111
singularity {
109112
enabled = true
110113
envWhitelist = 'SINGULARITY_BINDPATH, SINGULARITYENV_LD_LIBRARY_PATH'
114+
runOptions = '--bind $HOME:/$HOME'
111115
}
112116
params.containerDir = '/pawsey/mwa/singularity'
113117

robbie.nf

+3-2
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ process download_gleam_catalogue {
177177
try:
178178
cat.write(data_load.REF_CAT, format='fits')
179179
os.symlink(data_load.REF_CAT, "GLEAM_ref_cat.fits")
180-
except PermissionError:
180+
except OSError:
181181
# No permission so dump it here
182182
cat.write("GLEAM_ref_cat.fits", format='fits')
183183
"""
@@ -553,7 +553,7 @@ process reproject_images {
553553
"""
554554
echo ${task.process} on \${HOSTNAME}
555555
mkdir reprojected_images
556-
ls *Epoch* > temp_epochs.txt
556+
ls *.fits | grep -v "mean_image" > temp_epochs.txt
557557
ls *mean_image.* > temp_mean.txt
558558
reprojection.py --epochs temp_epochs.txt --mean temp_mean.txt --reproj_dir reprojected_images
559559
"""
@@ -588,6 +588,7 @@ workflow {
588588
image_ch = fits_warp.out
589589
image_bkg_rms = fits_warp.out.concat(bane_raw.out.map{ it -> [it[0], [it[1..2]]]}).groupTuple().map{ it -> [ it[0], it[1][0], it[1][1][0][1]]}
590590
}
591+
591592
make_mean_image( image_ch.map{ it -> it[1] }.collect() )
592593
make_sky_coverage( image_ch.map{ it -> it[1] }.collect() )
593594
bane_mean_image( make_mean_image.out[0] )

robbie_viewer_server/Dockerfile

-2
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,3 @@ RUN pip install -r requirements.txt
1515

1616
# EXPOSE PORTS
1717
EXPOSE 5006
18-
19-
CMD bokeh serve . --args /data

robbie_viewer_server/build_docker.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#! /usr/bin/env bash
22

33
# build the container and add a target
4-
docker build . -f ./Dockerfile -t "robbie/robbie-viewer"
4+
docker build . -f ./Dockerfile -t "cjproud/robbie_viewer:latest"
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#! /usr/bin/env bash
22

33
# build the container and add a target
4-
docker buildx build . --platform linux/amd64 -f ./Dockerfile -t "robbie/robbie-viewer"
4+
docker buildx build . --platform linux/amd64 -f ./Dockerfile -t "cjproud/robbie_viewer:latest"

0 commit comments

Comments
 (0)