-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
80 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/bin/bash | ||
# shellcheck disable=SC2139 | ||
|
||
export outdir=${outdir:=${MYSCRATCH}/} | ||
module use /software/projects/pawsey1094/setonix/2024.05/modules/zen3/gcc/12.2.0 | ||
module load hyperdrive/default birli/default giant-squid/default hyperbeam/default wsclean/default mwalib/default singularity/default | ||
module load py-pip/default py-numpy/default | ||
pip install --user \ | ||
importlib_metadata==8.2.0 \ | ||
kneed==0.8.5 \ | ||
matplotlib==3.7.5 \ | ||
maturin[patchelf]==1.7.0 \ | ||
numpy==1.24.4 \ | ||
pandas==2.0.3 \ | ||
pip==24.2 \ | ||
pyuvdata==2.4.5 \ | ||
pyvo==1.5.2 \ | ||
seaborn==0.13.2 \ | ||
psutil==6.0.0 \ | ||
git+https://github.com/mwilensky768/SSINS.git@master \ | ||
git+https://github.com/PaulHancock/Aegean.git \ | ||
git+https://github.com/tjgalvin/fits_warp.git \ | ||
git+https://github.com/d3v-null/mwa_qa.git@dev | ||
|
||
export singularity_base="singularity exec" | ||
export docker_img=${docker_img:="mwatelescope/mwa-demo:latest"} | ||
|
||
export bindir=${PWD}/bin/ | ||
export PATH=${PATH}:${bindir} | ||
mkdir -p ${bindir} | ||
rm ${bindir}* | ||
while IFS='|' read -r bin argv; do | ||
# strip spaces | ||
bin=$(echo "$bin" | tr -d '[:space:]') | ||
if command -v "$bin" &>/dev/null; then | ||
echo "$bin already exists, skipping" | ||
continue | ||
else | ||
echo "$bin not found, creating ${bindir}$bin" | ||
fi | ||
echo "#!/bin/bash" >"${bindir}$bin" | ||
echo "$singularity_base $argv $docker_img $bin \"\$@\"" >>"${bindir}$bin" | ||
chmod +x "${bindir}$bin" | ||
done <<-EoF | ||
birli | ||
giant-squid | -e MWA_ASVO_API_KEY=\$MWA_ASVO_API_KEY | ||
hyperdrive | -e MWA_BEAM_FILE=\$MWA_BEAM_FILE | ||
jq | ||
wsclean | ||
python | ||
plot_calqa.py | ||
plot_prepvisqa.py | ||
run_calqa.py | ||
run_prepvisqa.py | ||
EoF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters