Skip to content

Commit 00dd659

Browse files
committed
Randomised ordering of pixels + bug fixes
1 parent 454ab6f commit 00dd659

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

run_lyacolore_multi_node.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ CONFIG_FILE="./input_files/config_files/config_v9.0.ini"
1414

1515
# Set where your CoLoRe output is located, and where you would like your
1616
# LyaCoLoRe output to be located.
17-
COLORE_OUT_LOC=...
18-
LYACOLORE_OUT_LOC=...
17+
COLORE_OUT_LOC="..."
18+
LYACOLORE_OUT_LOC="..."
1919

2020
# Specify the queue to use for this set of realisations, and the number of
2121
# nodes/cores.
2222
QUEUE='debug'
2323
NNODES=32
24-
NCORES=32
24+
NCORES=64
2525
TIME="00:10:00" #hh:mm:ss
2626

2727
# Specify the settings for LyaCoLoRe.
@@ -35,10 +35,9 @@ echo " "
3535
echo "################################################################################"
3636
echo " "
3737
echo "CoLoRe input will be taken from "$COLORE_OUT_LOC
38-
INPUT_FILES=`ls -1 ${INPUT_PATH}/out_srcs_*.fits`
38+
INPUT_FILES=`ls -1 ${COLORE_OUT_LOC}/out_srcs_*.fits`
3939
NFILES=`echo $INPUT_FILES | wc -w`
4040
echo " -> ${NFILES} input files have been found"
41-
echo "Using LyaCoLoRe seed $LYACOLORE_SEED"
4241
echo "Output will written to "$LYACOLORE_OUT_LOC
4342
if [ ! -d $LYACOLORE_OUT_LOC ] ; then
4443
mkdir -p $LYACOLORE_OUT_LOC
@@ -75,10 +74,11 @@ cat > $RUN_FILE <<EOF
7574
#SBATCH -C haswell
7675
#SBATCH -A desi
7776
77+
conda activate lyacolore
7878
umask 0002
7979
export OMP_NUM_THREADS=64
8080
81-
PIXDIRS=\`\ls -tr1d ${LYACOLORE_OUT_LOC}/[0-9]*/*\`
81+
PIXDIRS=\`\ls -tr1d ${LYACOLORE_OUT_LOC}/[0-9]*/* | sort -R\`
8282
NPIXELS=\`echo \$PIXDIRS | wc -w\`
8383
PIXDIRS_list=(\$PIXDIRS)
8484
@@ -100,7 +100,7 @@ for NODE in \`seq $NNODES\` ; do
100100
101101
echo "looking at pixels: \${NODE_PIXELS}"
102102
103-
command="${LYACOLORE_PATH}/make_transmission.py -c ${CONFIG_FILE} -i ${COLORE_OUT_LOC} -o ${LYACOLORE_OUT_LOC} --nproc ${NCORES}"
103+
command="${LYACOLORE_PATH}/scripts/make_transmission.py -c ${CONFIG_FILE} -i ${COLORE_OUT_LOC} -o ${LYACOLORE_OUT_LOC} --nproc ${NCORES} --pixels \${NODE_PIXELS}"
104104
105105
echo \$command
106106
\$command >& ${LYACOLORE_OUT_LOC}/logs/node-\${NODE}.log &

0 commit comments

Comments
 (0)