-
Notifications
You must be signed in to change notification settings - Fork 6
glass: extension of the existing script to the tomographic case #219
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
Draft
sachaguer
wants to merge
6
commits into
feature/sp_validation-extend-to-tomography
Choose a base branch
from
feature/glass
base: feature/sp_validation-extend-to-tomography
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.
+1,541
−348
Draft
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
27f24af
(ruff) Commit modifications by the ruff pre-commit
sachaguer f8fb92f
(Test) Add test data for the test run of the GLASS sims. Runs end to …
sachaguer 2b94f40
(feature) Add an option to run the shell cl with limber approximation
sachaguer 50de95a
(ruff) Commit ruff changes
sachaguer 49f4cce
Update the installation of glass to the most recent version
sachaguer b9e9722
Add the possibility to input a list of bias, shape noise, and number …
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| # Config file to generate a GLASS mock. | ||
| # Example config file, uncomment and modify the inplace value if needed. | ||
|
|
||
| # To run this configuration run the script `make_glass_sim.py` | ||
| # Options: | ||
| # -s, --seed: Random seed | ||
| # -N, --number: Mock Number for labelling | ||
| # -t, --test: Run in test mode | ||
| # -cb, --camb: get Camb C_ell | ||
| # -c, --config: Path to the configuration file to generate the simulation (Required) | ||
|
|
||
| # --- Cosmological parameters (CAMB) --- | ||
| #h: 0.6766 | ||
| #Om: 0.30966 | ||
| #Ob: 0.04897 | ||
| #ns: 0.9665 | ||
| #sigma8: 0.8102 | ||
| #mnu: 0.06 | ||
| #log_T_AGN: 7.8 | ||
| #As_init: 2.1e-9 #seed As before sigma8 rescaling | ||
| #kmax: 20.0 | ||
|
|
||
| # --- Resolution --- | ||
| nside: 4096 | ||
| dx: 120.0 | ||
| zmax: 3.0 | ||
|
|
||
| # --- galaxy population (downstream of map generation) --- | ||
| nbins: 6 | ||
| n_arcmin2: [1, 1.02, 1.05, 0.85, 0.9, 1.2] | ||
| sigma_e: 0.2684 | ||
| bias: 1.2 | ||
| phz_sigma_0: 0.03 | ||
| #ia_bias: null | ||
|
|
||
| # --- Runtime options --- | ||
| limber: True | ||
| mask_path: /n09data/guerrini/glass_mock_v1.4.6_rerun/mask_nside4096.fits | ||
| nz_path: /home/guerrini/sp_validation_cosmostat/config/glass_mock/test_data/redshift_distribution_tomo.txt | ||
| output_path: /n09data/guerrini/glass_mock_test/ | ||
| output_prefix: tomo_test | ||
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,41 @@ | ||
| # Config file to generate a GLASS mock. | ||
| # Example config file, uncomment and modify the inplace value if needed. | ||
|
|
||
| # To run this configuration run the script `make_glass_sim.py` | ||
| # Options: | ||
| # -s, --seed: Random seed | ||
| # -N, --number: Mock Number for labelling | ||
| # -t, --test: Run in test mode | ||
| # -cb, --camb: get Camb C_ell | ||
| # -c, --config: Path to the configuration file to generate the simulation (Required) | ||
|
|
||
| # --- Cosmological parameters (CAMB) --- | ||
| #h: 0.7 | ||
| #Om: 0.30966 | ||
| #Ob: 0.04897 | ||
| #ns: 0.9665 | ||
| #sigma8: 0.8102 | ||
| #mnu: 0.06 | ||
| #log_T_AGN: 7.8 | ||
| #As_init: 2.1e-9 #seed As before sigma8 rescaling | ||
| #kmax: 20.0 | ||
|
|
||
| # --- Resolution --- | ||
| nside: 32 | ||
| dx: 200.0 | ||
| zmax: 3 | ||
|
|
||
| # --- galaxy population (downstream of map generation) --- | ||
| nbins: 6 | ||
| n_arcmin2: [4.0, 3.8, 4.2, 3.95, 4.05, 4.0] | ||
| sigma_e: 0.2684 | ||
| bias: 1.2 | ||
| phz_sigma_0: 0.03 | ||
| #ia_bias: null | ||
|
|
||
| # --- Runtime options --- | ||
| limber: True | ||
| mask_path: /n09data/guerrini/glass_mock_v1.4.6_rerun/mask_nside4096.fits | ||
| nz_path: /home/guerrini/sp_validation_cosmostat/config/glass_mock/test_data/redshift_distribution_tomo.txt | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. would be good to have this point to a neutral place, e.g. |
||
| output_path: /n09data/guerrini/glass_mock_test/ | ||
| output_prefix: unions | ||
Binary file not shown.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we implement sigma_e per tomo bin?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see in the py script usage that this can be a scalar or array. Good. Maybe add a comment here about the two syntax options.