Skip to content

TF validation - #82

Merged
kwolz merged 35 commits into
mainfrom
tf-validation
Sep 29, 2026
Merged

kwolz merged 35 commits into
mainfrom
tf-validation

Conversation

@kwolz

@kwolz kwolz commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Scripts to validate SOOPERCOOL transfer functions on simulations. Changes include:

  • New, fully automated script validate_transfer_function_kspace.py that only requires unfiltered TF estimation sims
  • Updated script validate_transfer_function.py that requires both filtered and unfiltered validation sims
  • Updated simulation generation scripts for TF estimation sims (Gaussian, power-law) and CMB-only sims

@kwolz
kwolz requested a review from adrien-laposta September 9, 2026 14:52
@kwolz
kwolz marked this pull request as ready for review September 9, 2026 14:52
Comment thread pipeline/kspace/filter_sims_kspace.py Outdated
Comment thread pipeline/kspace/filter_sims_kspace.py Outdated
Comment thread pipeline/kspace/filter_sims_kspace.py Outdated
parser.add_argument(
"--globals", help="Path to the soopercool parameter file"
)
parser.add_argument(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed in SOOPERCOOL as file structure is hardcoded. I believe this is to be able to use it to generate a bunch of filtered simulations externally ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's right - SOOPERCOOL scripts such as this one should be flexible enough to be reused externally, especially if it is needed in many contexts. We could think of moving out_dir argument to a utility function instead of keeping it in the main script.

Comment thread pipeline/kspace/filter_sims_kspace.py Outdated
Comment thread soopercool/map_utils.py Outdated
@@ -723,7 +727,8 @@ def get_inverse_couplings(self, return_bpwf=False):
fname = f"couplings{filter_label}_{ftag1}_{ftag2}"
if not os.path.isfile(f"{couplings_dir}/{fname}.npz"):
raise ValueError(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to myself: I think this is not used in the pipeline. At some point we'll need to do a big cleanup of metadata_manager

Comment thread soopercool/metadata_manager.py
Comment thread soopercool/ps_utils.py Outdated
Comment thread README.md Outdated

@adrien-laposta adrien-laposta left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, need to fix merge conflicts with main but shouldn't be too long

@kwolz
kwolz merged commit a4e5c6a into main Sep 29, 2026
1 check passed
@kwolz
kwolz deleted the tf-validation branch September 29, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants