Skip to content

Commit

Permalink
high SNR but high shape noise
Browse files Browse the repository at this point in the history
  • Loading branch information
ismael-mendoza committed Jan 23, 2025
1 parent e71ebc4 commit 0fcf53b
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
34 changes: 34 additions & 0 deletions experiments/exp42/Makefile
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
12 changes: 12 additions & 0 deletions experiments/exp42/README.md
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
```

0 comments on commit 0fcf53b

Please sign in to comment.