generated from sfarrens/pyralid-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Standardize catalog paths and add validation guardrails #165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
cailmdaley
wants to merge
30
commits into
develop
Choose a base branch
from
feature/ellipticity-suffix
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
0296a91
use consistent config for 1.4.5/6/7/8 and reorganize entries
cailmdaley 8f9aab0
add 1.4.8
cailmdaley 1b3f539
refactor: standardise catalog paths and add guardrails
cailmdaley 62868c0
gitignore
cailmdaley 0ce82ef
remove PR draft file
cailmdaley 6a44359
propagate changes to run_cosmo_val
cailmdaley 746479b
Prune legacy catalogs and tighten survey stats
cailmdaley 1b55238
add docstring
cailmdaley 2a6a3e2
refactor: remove redshift_file parameter and use catalog config
cailmdaley 419212b
fix: remove obsolete data_base_dir parameter from eb_plots.py
cailmdaley a14123c
feat: add glass mock seed variants and v1.4.6 glass mock catalog
cailmdaley 8d14a83
test: add v1.4.6 glass mock to base tests and seed variant test
cailmdaley 60ffcd3
refactor: use path templates for elegant seed variant handling
cailmdaley 8957ce2
test: add v1.4.6 glass mock default seed test
cailmdaley bdc1461
consistent b-mode ylims
cailmdaley b5939d8
Merge branch 'develop' into feature/ellipticity-suffix
cailmdaley 9d3dac8
refactor: remove non-functional catalog versions and consolidate tests
cailmdaley 27c0cbf
rework rho_tau.py to use consistent CosmologyValidation basename
cailmdaley a1bd872
merge pipeline.sh and cosmosis_fitting, make work with mocks
cailmdaley ecf3769
remove defunct pipeline.sh
cailmdaley e76ba2c
add example call
cailmdaley ddfb617
bugfix and readme
cailmdaley a248282
example ini files for glass mock; not using new priors etc. yet
cailmdaley 55b0719
smarter gitignore
cailmdaley 0a937c7
fix gitignore, add data ini
cailmdaley 508a652
make sure cls are included in data fits file
cailmdaley f9a8179
Update inference configs and pseudo-Cl handling
cailmdaley e74d3cf
cosmosis_fitting fixes
cailmdaley f18d6dd
better control of output files
cailmdaley f5abd15
Merged harmonic and configuration space covariance to fix bug in infe…
sachaguer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
124 changes: 124 additions & 0 deletions
124
...e/cosmosis_config/cosmosis_pipeline_SP_v1.4.5_A_minsep=1_maxsep=250_nbins=20_npatch=1.ini
This file contains hidden or 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,124 @@ | ||
| #parameters used elsewhere in this file | ||
| [DEFAULT] | ||
| FITS_FILE = data/SP_v1.4.5_A_minsep=1_maxsep=250_nbins=20_npatch=1/cosmosis_SP_v1.4.5_A_minsep=1_maxsep=250_nbins=20_npatch=1.fits | ||
| SCRATCH = /n09data/guerrini/output_chains/SP_v1.4.5_A_minsep=1_maxsep=250_nbins=20_npatch=1 | ||
| COSMOSIS_DIR = /home/guerrini/cosmosis-standard-library | ||
|
|
||
|
|
||
| [pipeline] | ||
| priors = cosmosis_config/priors_psf.ini | ||
| values = cosmosis_config/values_psf.ini | ||
| modules = consistency sample_S8 camb load_nz_fits photoz_bias linear_alignment projection add_intrinsic 2pt_shear add_xi_sys tau_from_rho 2pt_like | ||
| likelihoods = 2pt_like | ||
| extra_output = cosmological_parameters/omega_lambda cosmological_parameters/S_8 cosmological_parameters/sigma_8 cosmological_parameters/omega_m | ||
| timing = T | ||
| debug = T | ||
|
|
||
| [runtime] | ||
| sampler = polychord | ||
| verbosity = debug | ||
|
|
||
| [test] | ||
| save_dir = %(SCRATCH)s/test_new_pipeline | ||
|
|
||
| [polychord] | ||
| polychord_outfile_root = SP_v1.4.5_A_minsep=1_maxsep=250_nbins=20_npatch=1 | ||
| live_points = 192 | ||
| feedback = 3 | ||
| resume = T | ||
| base_dir = %(SCRATCH)s/polychord | ||
|
|
||
| [output] | ||
| filename = %(SCRATCH)s/SP_v1.4.5_A_minsep=1_maxsep=250_nbins=20_npatch=1/samples_SP_v1.4.5_A_minsep=1_maxsep=250_nbins=20_npatch=1.txt | ||
| format = text | ||
| lock = F | ||
|
|
||
| [consistency] | ||
| file = %(COSMOSIS_DIR)s/utility/consistency/consistency_interface.py | ||
| verbose = F | ||
|
|
||
| [sample_S8] | ||
| file = %(COSMOSIS_DIR)s/utility/sample_sigma8/sample_S8.py | ||
|
|
||
| [camb] | ||
| file = %(COSMOSIS_DIR)s/boltzmann/camb/camb_interface.py | ||
| mode=power | ||
| lmax=2508 | ||
| feedback=0 | ||
| do_reionization=F | ||
| kmin=1e-5 | ||
| kmax=20.0 | ||
| nk=200 | ||
| zmax=5.0 | ||
| zmax_background=5.0 | ||
| nz_background=500 | ||
| halofit_version=mead2020_feedback | ||
| nonlinear=pk | ||
| neutrino_hierarchy=normal | ||
| kmax_extrapolate = 500.0 | ||
|
|
||
| [load_nz_fits] | ||
| file = %(COSMOSIS_DIR)s/number_density/load_nz_fits/load_nz_fits.py | ||
| nz_file =%(FITS_FILE)s | ||
| data_sets = SOURCE | ||
|
|
||
| [photoz_bias] | ||
| file = %(COSMOSIS_DIR)s/number_density/photoz_bias/photoz_bias.py | ||
| mode = additive | ||
| sample = nz_source | ||
| bias_section = nofz_shifts | ||
| interpolation = cubic | ||
| output_deltaz_section_name = delta_z_out | ||
|
|
||
| [linear_alignment] | ||
| file = %(COSMOSIS_DIR)s/intrinsic_alignments/la_model/linear_alignments_interface.py | ||
| method = bk_corrected | ||
|
|
||
| [projection] | ||
| file = %(COSMOSIS_DIR)s/structure/projection/project_2d.py | ||
| ell_min_logspaced = 1.0 | ||
| ell_max_logspaced = 25000.0 | ||
| n_ell_logspaced = 400 | ||
| shear-shear = source-source | ||
| shear-intrinsic = source-source | ||
| intrinsic-intrinsic = source-source | ||
| get_kernel_peaks = F | ||
| verbose = F | ||
|
|
||
| [add_intrinsic] | ||
| file = %(COSMOSIS_DIR)s/shear/add_intrinsic/add_intrinsic.py | ||
| shear-shear=T | ||
| position-shear=F | ||
| perbin=F | ||
|
|
||
| [2pt_shear] | ||
| file = %(COSMOSIS_DIR)s/shear/cl_to_xi_nicaea/nicaea_interface.so | ||
| corr_type = 0 ; shear_cl -> shear_xi | ||
|
|
||
| [shear_m_bias] | ||
| file = shear/shear_bias/shear_m_bias.py | ||
| m_per_bin = True | ||
| ; Despite the parameter name, this can operate on xi as well as C_ell. | ||
| cl_section = shear_xi_plus shear_xi_minus | ||
| verbose = F | ||
|
|
||
| [add_xi_sys] | ||
| file = %(COSMOSIS_DIR)s/shear/xi_sys/xi_sys_psf.py | ||
| data_file=%(FITS_FILE)s | ||
| rho_stats_name=RHO_STATS | ||
|
|
||
| [tau_from_rho] | ||
| file = %(COSMOSIS_DIR)s/shear/xi_sys/tau_from_rho.py | ||
| data_file=%(FITS_FILE)s | ||
|
|
||
| [2pt_like] | ||
| add_xi_sys=T | ||
| data_sets=XI_PLUS XI_MINUS TAU_0_PLUS TAU_2_PLUS | ||
| file = %(COSMOSIS_DIR)s/likelihood/2pt/2pt_like_xi_sys.py | ||
| data_file=%(FITS_FILE)s | ||
| gaussian_covariance=F | ||
| covmat_name=COVMAT | ||
| cut_zeros=F | ||
| like_name=2pt_like | ||
| angle_range_XI_PLUS_1_1= 3.0 150.0 | ||
| angle_range_XI_MINUS_1_1= 10.0 200.0 |
124 changes: 124 additions & 0 deletions
124
..._config/cosmosis_pipeline_SP_v1.4.5_leak_corr_A_minsep=1_maxsep=250_nbins=20_npatch=1.ini
This file contains hidden or 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,124 @@ | ||
| #parameters used elsewhere in this file | ||
| [DEFAULT] | ||
| FITS_FILE = data/SP_v1.4.5_leak_corr_A_minsep=1_maxsep=250_nbins=20_npatch=1/cosmosis_SP_v1.4.5_leak_corr_A_minsep=1_maxsep=250_nbins=20_npatch=1.fits | ||
| SCRATCH = /n09data/guerrini/output_chains/SP_v1.4.5_leak_corr_A_minsep=1_maxsep=250_nbins=20_npatch=1 | ||
| COSMOSIS_DIR = /home/guerrini/cosmosis-standard-library | ||
|
|
||
|
|
||
| [pipeline] | ||
| priors = cosmosis_config/priors_psf.ini | ||
| values = cosmosis_config/values_psf.ini | ||
| modules = consistency sample_S8 camb load_nz_fits photoz_bias linear_alignment projection add_intrinsic 2pt_shear add_xi_sys tau_from_rho 2pt_like | ||
| likelihoods = 2pt_like | ||
| extra_output = cosmological_parameters/omega_lambda cosmological_parameters/S_8 cosmological_parameters/sigma_8 cosmological_parameters/omega_m | ||
| timing = T | ||
| debug = T | ||
|
|
||
| [runtime] | ||
| sampler = polychord | ||
| verbosity = debug | ||
|
|
||
| [test] | ||
| save_dir = %(SCRATCH)s/test_new_pipeline | ||
|
|
||
| [polychord] | ||
| polychord_outfile_root = SP_v1.4.5_leak_corr_A_minsep=1_maxsep=250_nbins=20_npatch=1 | ||
| live_points = 192 | ||
| feedback = 3 | ||
| resume = T | ||
| base_dir = %(SCRATCH)s/polychord | ||
|
|
||
| [output] | ||
| filename = %(SCRATCH)s/SP_v1.4.5_leak_corr_A_minsep=1_maxsep=250_nbins=20_npatch=1/samples_SP_v1.4.5_leak_corr_A_minsep=1_maxsep=250_nbins=20_npatch=1.txt | ||
| format = text | ||
| lock = F | ||
|
|
||
| [consistency] | ||
| file = %(COSMOSIS_DIR)s/utility/consistency/consistency_interface.py | ||
| verbose = F | ||
|
|
||
| [sample_S8] | ||
| file = %(COSMOSIS_DIR)s/utility/sample_sigma8/sample_S8.py | ||
|
|
||
| [camb] | ||
| file = %(COSMOSIS_DIR)s/boltzmann/camb/camb_interface.py | ||
| mode=power | ||
| lmax=2508 | ||
| feedback=0 | ||
| do_reionization=F | ||
| kmin=1e-5 | ||
| kmax=20.0 | ||
| nk=200 | ||
| zmax=5.0 | ||
| zmax_background=5.0 | ||
| nz_background=500 | ||
| halofit_version=mead2020_feedback | ||
| nonlinear=pk | ||
| neutrino_hierarchy=normal | ||
| kmax_extrapolate = 500.0 | ||
|
|
||
| [load_nz_fits] | ||
| file = %(COSMOSIS_DIR)s/number_density/load_nz_fits/load_nz_fits.py | ||
| nz_file =%(FITS_FILE)s | ||
| data_sets = SOURCE | ||
|
|
||
| [photoz_bias] | ||
| file = %(COSMOSIS_DIR)s/number_density/photoz_bias/photoz_bias.py | ||
| mode = additive | ||
| sample = nz_source | ||
| bias_section = nofz_shifts | ||
| interpolation = cubic | ||
| output_deltaz_section_name = delta_z_out | ||
|
|
||
| [linear_alignment] | ||
| file = %(COSMOSIS_DIR)s/intrinsic_alignments/la_model/linear_alignments_interface.py | ||
| method = bk_corrected | ||
|
|
||
| [projection] | ||
| file = %(COSMOSIS_DIR)s/structure/projection/project_2d.py | ||
| ell_min_logspaced = 1.0 | ||
| ell_max_logspaced = 25000.0 | ||
| n_ell_logspaced = 400 | ||
| shear-shear = source-source | ||
| shear-intrinsic = source-source | ||
| intrinsic-intrinsic = source-source | ||
| get_kernel_peaks = F | ||
| verbose = F | ||
|
|
||
| [add_intrinsic] | ||
| file = %(COSMOSIS_DIR)s/shear/add_intrinsic/add_intrinsic.py | ||
| shear-shear=T | ||
| position-shear=F | ||
| perbin=F | ||
|
|
||
| [2pt_shear] | ||
| file = %(COSMOSIS_DIR)s/shear/cl_to_xi_nicaea/nicaea_interface.so | ||
| corr_type = 0 ; shear_cl -> shear_xi | ||
|
|
||
| [shear_m_bias] | ||
| file = shear/shear_bias/shear_m_bias.py | ||
| m_per_bin = True | ||
| ; Despite the parameter name, this can operate on xi as well as C_ell. | ||
| cl_section = shear_xi_plus shear_xi_minus | ||
| verbose = F | ||
|
|
||
| [add_xi_sys] | ||
| file = %(COSMOSIS_DIR)s/shear/xi_sys/xi_sys_psf.py | ||
| data_file=%(FITS_FILE)s | ||
| rho_stats_name=RHO_STATS | ||
|
|
||
| [tau_from_rho] | ||
| file = %(COSMOSIS_DIR)s/shear/xi_sys/tau_from_rho.py | ||
| data_file=%(FITS_FILE)s | ||
|
|
||
| [2pt_like] | ||
| add_xi_sys=T | ||
| data_sets=XI_PLUS XI_MINUS TAU_0_PLUS TAU_2_PLUS | ||
| file = %(COSMOSIS_DIR)s/likelihood/2pt/2pt_like_xi_sys.py | ||
| data_file=%(FITS_FILE)s | ||
| gaussian_covariance=F | ||
| covmat_name=COVMAT | ||
| cut_zeros=F | ||
| like_name=2pt_like | ||
| angle_range_XI_PLUS_1_1= 3.0 150.0 | ||
| angle_range_XI_MINUS_1_1= 10.0 200.0 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.