-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
e71ebc4
commit 0fcf53b
Showing
2 changed files
with
46 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
SHELL=/bin/bash | ||
SEED := 42 | ||
DIR := /pscratch/sd/i/imendoza/data/cache_chains/exp41_${SEED} | ||
TAG := exp41_${SEED} | ||
SHAPE_NOISE := 0.1 | ||
SIGMA_E_INT := 0.15 | ||
SHEAR := 0.02 | ||
export JAX_ENABLE_X64=True | ||
|
||
figures: | ||
../exp40/get_figures.py ${SEED} --tag ${TAG} | ||
|
||
jackknife: | ||
export CUDA_VISIBLE_DEVICES=0 | ||
../exp40/get_shear_jackknife.py ${SEED} --old-seed ${SEED} \ | ||
--samples-plus-fname interim_samples_${SEED}_plus.npz \ | ||
--samples-minus-fname interim_samples_${SEED}_minus.npz \ | ||
--tag ${TAG} --overwrite | ||
|
||
shear: | ||
export CUDA_VISIBLE_DEVICES=0 | ||
../../scripts/get_shear_from_shapes.py ${SEED} --old-seed ${SEED} --interim-samples-fname "interim_samples_${SEED}_plus.npz" --tag ${TAG} --overwrite --extra-tag "plus" | ||
../../scripts/get_shear_from_shapes.py ${SEED} --old-seed ${SEED} --interim-samples-fname "interim_samples_${SEED}_minus.npz" --tag ${TAG} --overwrite --extra-tag "minus" | ||
|
||
collate: | ||
../exp40/collate_samples.py ${SEED} --tag ${TAG} --mode "plus" --n-files 4 | ||
../exp40/collate_samples.py ${SEED} --tag ${TAG} --mode "minus" --n-files 4 | ||
|
||
samples: | ||
../exp40/slurm_get_interim_samples.py ${SEED} --tag ${TAG} --g1 ${SHEAR} --g2 0.0 --n-gals 250 --n-samples-per-gal 150 --mean-logflux 6.0 --sigma-logflux 0.1 --shape-noise ${SHAPE_NOISE} --sigma-e-int ${SIGMA_E_INT} --time "00:05" --mode "plus" --mem-per-gpu "5G" | ||
../exp40/slurm_get_interim_samples.py ${SEED} --tag ${TAG} --g1 -${SHEAR} --g2 0.0 --n-gals 250 --n-samples-per-gal 150 --mean-logflux 6.0 --sigma-logflux 0.1 --shape-noise ${SHAPE_NOISE} --sigma-e-int ${SIGMA_E_INT} --time "00:05" --mode "minus" --mem-per-gpu "5G" | ||
|
||
clean: | ||
rm -f ${DIR}/g_samples_*.npy ${DIR}/interim_samples_*.npz |
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,12 @@ | ||
# Experiment 4.2 | ||
|
||
Same as experiment `4.0`, shape noise level is the same but high SNR galaxies only. | ||
|
||
## Reproducing results | ||
|
||
```bash | ||
make samples # wait for slurm job to finish | ||
make collate | ||
make shear | ||
make figures | ||
``` |