Skip to content

New feature: Configuration file generator - #99

Draft
adrien-laposta wants to merge 2 commits into
mainfrom
gen_config
Draft

adrien-laposta wants to merge 2 commits into
mainfrom
gen_config

Conversation

@adrien-laposta

Copy link
Copy Markdown
Collaborator
  • Added a script make_soopercool_configs.py to generate a set of SOOPERCOOL configuration files from a single bundling/filtering/signflip configuration file.
  • Accepts CLI arguments --config-file (bundling config), --output-dir (where to save the SOOPERCOOL runs) and '--output-config` (a root name to save configuration files)
  • Provided a _TEMPLATE_CONFIG.yaml serving two purposes (1) document input formatting and (2) a template for this new script.

@adrien-laposta
adrien-laposta requested review from earosenberg and a balanced review from Copilot October 13, 2026 14:19
@adrien-laposta
adrien-laposta removed the request for review from Copilot October 13, 2026 14:21
).group()

blocks = []
for freq in config["freq_channel"]:

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.

Could make this more flexible with a single itertools.product loop instead of 4 nested

# map for filtering we scan higher resolution maps and
# then use low-res
sections["unfiltered_map_dir"][name] = \
filtering["sim_dir"].replace("1.0arcmin", "4.0arcmin")

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.

Hmm this is not ideal. We can't make these more general parameters in the soopercool template or something?

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 very annoying it's just that the input sims we use for filtering are different from input sims we use for TF ... I couldn't find a better solution. Although, input simulations are no longer used for TF estimation but we still compute their power spectra to identify possible bugs.

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.

2 participants